Core/Spells: Fixed range checks for ON_NEXT_SWING spells broken in f02ac75007

This commit is contained in:
Shauren
2026-06-05 16:45:39 +02:00
parent b122968b20
commit b192dd047f
+3
View File
@@ -7346,7 +7346,10 @@ SpellRange Spell::GetMinMaxRange(bool strict) const
SpellRange range;
if (strict && m_spellInfo->IsNextMeleeSwingSpell())
{
range = { .Min = 0.0f, .Max = 100.0f };
return range;
}
Unit* unitCaster = m_caster->ToUnit();
if (m_spellInfo->RangeEntry)