mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-22 03:18:22 +00:00
Fix for pets, mercs, bot that don't set combat state.
This commit is contained in:
+3
-1
@@ -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());
|
||||||
|
|||||||
Reference in New Issue
Block a user