Scripts/BWD: use the correct helper for getting the distance between target and Magmaw

This commit is contained in:
Ovahlord
2019-08-10 22:07:08 +02:00
parent 84240e8487
commit ae836aad33

View File

@@ -928,7 +928,7 @@ class DistanceCheck
bool operator()(WorldObject* object)
{
if (Unit* unit = object->ToUnit())
return unit->GetDistance2d(_caster) < _caster->GetCombatReach() + 15.0f;
return unit->GetExactDist2d(_caster) < _caster->GetCombatReach() + 15.0f;
return true;
}