mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Scripts/BWD: use the correct helper for getting the distance between target and Magmaw
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user