mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-03 15:22:24 +00:00
Removed a usage of Mob::DistNoRootNoZ and used ComparativeDistanceNoZ instead
This commit is contained in:
parent
f54c698ffe
commit
90e011ad99
@ -1318,7 +1318,7 @@ bool Merc::IsMercCasterCombatRange(Mob *target) {
|
|||||||
// half the max so the merc doesn't always stop at max range to allow combat movement
|
// half the max so the merc doesn't always stop at max range to allow combat movement
|
||||||
range *= .5;
|
range *= .5;
|
||||||
|
|
||||||
float targetDistance = DistNoRootNoZ(*target);
|
float targetDistance = ComparativeDistanceNoZ(m_Position, target->GetPosition());
|
||||||
|
|
||||||
if(targetDistance > range)
|
if(targetDistance > range)
|
||||||
result = false;
|
result = false;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user