mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Replaced expensive IsPet() with GetOwnerID().
This commit is contained in:
+1
-1
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user