mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-28 13:27:15 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
+1
-1
@@ -796,7 +796,7 @@ void EntityList::MassGroupBuff(Mob *caster, Mob *center, uint16 spell_id, bool a
|
|||||||
continue;
|
continue;
|
||||||
if (curmob == caster && !affect_caster) //watch for caster too
|
if (curmob == caster && !affect_caster) //watch for caster too
|
||||||
continue;
|
continue;
|
||||||
if (center->DistNoRoot(*curmob) > dist2) //make sure they are in range
|
if (ComparativeDistance(center->GetPosition(), curmob->GetPosition()) > dist2) //make sure they are in range
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
//Only npcs mgb should hit are client pets...
|
//Only npcs mgb should hit are client pets...
|
||||||
|
|||||||
Reference in New Issue
Block a user