Comment movement code and make target required in all cases again

This commit is contained in:
Noudess 2020-05-28 13:30:34 -04:00
parent 4ad38d4c49
commit fa2caf8f83

View File

@ -1319,9 +1319,10 @@ void Mob::AI_Process() {
FaceTarget();
}
}
else if (AI_movement_timer->Check() &&
// mob/npc waits until call for help complete, others can move
else if (AI_movement_timer->Check() && target &&
(IsPet() || IsMerc() || IsBot() ||
(target && CastToNPC()->GetCombatEvent()))) {
CastToNPC()->GetCombatEvent())) {
if (!IsRooted()) {
LogAI("Pursuing [{}] while engaged", target->GetName());
RunTo(target->GetX(), target->GetY(), target->GetZ());