mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-30 15:01:29 +00:00
Fix for pets, mercs, bot that don't set combat state.
This commit is contained in:
parent
4e8764b6b9
commit
4ad38d4c49
@ -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());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user