mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 01:11:29 +00:00
Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead
This commit is contained in:
parent
d01f307edc
commit
30eb545b0b
@ -3868,7 +3868,7 @@ Mob *EntityList::GetTargetForMez(Mob *caster)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (caster->DistNoRoot(*d) > 22250) { //only pick targets within 150 range
|
||||
if (ComparativeDistance(caster->GetPosition(), d->GetPosition()) > 22250) { //only pick targets within 150 range
|
||||
++it;
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user