mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-23 06:32:28 +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();
|
FaceTarget();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (AI_movement_timer->Check() && target && CastToNPC()->GetCombatEvent()) {
|
else if (AI_movement_timer->Check() &&
|
||||||
|
(IsPet() || IsMerc() || IsBot() ||
|
||||||
|
(target && CastToNPC()->GetCombatEvent()))) {
|
||||||
if (!IsRooted()) {
|
if (!IsRooted()) {
|
||||||
LogAI("Pursuing [{}] while engaged", target->GetName());
|
LogAI("Pursuing [{}] while engaged", target->GetName());
|
||||||
RunTo(target->GetX(), target->GetY(), target->GetZ());
|
RunTo(target->GetX(), target->GetY(), target->GetZ());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user