Fix for pets, mercs, bot that don't set combat state.

This commit is contained in:
Noudess 2020-05-28 13:17:31 -04:00
parent 4e8764b6b9
commit 4ad38d4c49

View File

@ -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());