diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index 5f75fb81b..66cf41b21 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -1812,7 +1812,7 @@ void NPC::AI_DoMovement() { ClearFeignMemory(); moved=false; SetMoving(false); - if (GetTarget() == nullptr || DistNoRoot(*GetTarget()) >= 5*5 ) + if (GetTarget() == nullptr || ComparativeDistance(m_Position, GetTarget()->GetPosition()) >= 5*5 ) { SetHeading(m_GuardPoint.m_Heading); } else {