mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-11 02:52:26 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
608809a5dc
commit
ef68b46c9c
@ -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...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user