Scripts/BWD: Magmaw will now correctly consider the additional 15 yards in addition to his combat reach when selecting targets for Pillar of Flame

This commit is contained in:
Ovahlord committed 2019-08-10 22:03:08 +02:00
1 parent cd9898f542
commit 84240e8487
1 file changed
+1 -1
@@ -928,7 +928,7 @@ class DistanceCheck
bool operator()(WorldObject* object)
{
if (Unit* unit = object->ToUnit())
return unit->IsWithinMeleeRange(_caster);
return unit->GetDistance2d(_caster) < _caster->GetCombatReach() + 15.0f;
return true;
}