From 4ad38d4c497ec4ecab6e01835aeb00f9c593c939 Mon Sep 17 00:00:00 2001 From: Noudess Date: Thu, 28 May 2020 13:17:31 -0400 Subject: [PATCH] Fix for pets, mercs, bot that don't set combat state. --- zone/mob_ai.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zone/mob_ai.cpp b/zone/mob_ai.cpp index 426f462d4..bc3f71012 100644 --- a/zone/mob_ai.cpp +++ b/zone/mob_ai.cpp @@ -1319,7 +1319,9 @@ void Mob::AI_Process() { FaceTarget(); } } - else if (AI_movement_timer->Check() && target && CastToNPC()->GetCombatEvent()) { + else if (AI_movement_timer->Check() && + (IsPet() || IsMerc() || IsBot() || + (target && CastToNPC()->GetCombatEvent()))) { if (!IsRooted()) { LogAI("Pursuing [{}] while engaged", target->GetName()); RunTo(target->GetX(), target->GetY(), target->GetZ());