From 06f3d40c2851ffb5fdd13c85fa58612f656a7835 Mon Sep 17 00:00:00 2001 From: Noudess Date: Fri, 19 Jun 2020 07:59:08 -0400 Subject: [PATCH] Replaced expensive IsPet() with GetOwnerID(). --- zone/mob_ai.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index 7d18fdb1a..b7f69ac14 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -1321,7 +1321,7 @@ void Mob::AI_Process() { } // mob/npc waits until call for help complete, others can move else if (AI_movement_timer->Check() && target && - (IsPet() || IsMerc() || IsBot() || + (GetOwnerID() || IsBot() || CastToNPC()->GetCombatEvent())) { if (!IsRooted()) { LogAI("Pursuing [{}] while engaged", target->GetName());