Scripts/BWD: corrected and improved range target selection for Magmaw's abilities
This commit is contained in:
1 parent
5e56bf085d
commit
4ca383ea7a
1 file changed
+4
-1
+4
-1
@@ -927,7 +927,10 @@ class DistanceCheck
|
||||
|
||||
bool operator()(WorldObject* object)
|
||||
{
|
||||
return (object->GetExactDist2d(_caster) >= 15.0f);
|
||||
if (Unit* unit = object->ToUnit())
|
||||
return unit->IsWithinMeleeRange(_caster);
|
||||
|
||||
return true;
|
||||
}
|
||||
private:
|
||||
Unit* _caster;
|
||||
|
||||
Reference in new issue
Block a user