mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-12 17:51:28 +00:00
Replaced expensive IsPet() with GetOwnerID().
This commit is contained in:
parent
fa2caf8f83
commit
06f3d40c28
@ -1321,7 +1321,7 @@ void Mob::AI_Process() {
|
|||||||
}
|
}
|
||||||
// mob/npc waits until call for help complete, others can move
|
// mob/npc waits until call for help complete, others can move
|
||||||
else if (AI_movement_timer->Check() && target &&
|
else if (AI_movement_timer->Check() && target &&
|
||||||
(IsPet() || IsMerc() || IsBot() ||
|
(GetOwnerID() || IsBot() ||
|
||||||
CastToNPC()->GetCombatEvent())) {
|
CastToNPC()->GetCombatEvent())) {
|
||||||
if (!IsRooted()) {
|
if (!IsRooted()) {
|
||||||
LogAI("Pursuing [{}] while engaged", target->GetName());
|
LogAI("Pursuing [{}] while engaged", target->GetName());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user