Replaced expensive IsPet() with GetOwnerID().

This commit is contained in:
Noudess 2020-06-19 07:59:08 -04:00
parent fa2caf8f83
commit 06f3d40c28

View File

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