diff --git a/src/server/game/AI/NpcBots/bot_ai.cpp b/src/server/game/AI/NpcBots/bot_ai.cpp index 4871744feba0f..870ea3bab5fc9 100644 --- a/src/server/game/AI/NpcBots/bot_ai.cpp +++ b/src/server/game/AI/NpcBots/bot_ai.cpp @@ -4748,6 +4748,7 @@ bool bot_ai::CheckAttackTarget() Evade(); } + _lastTargetGuid = ObjectGuid::Empty; return false; } @@ -18491,7 +18492,7 @@ bool bot_ai::GlobalUpdate(uint32 diff) return false; //opponent unsafe - if ((IsWanderer() || (!IAmFree() && (!opponent || !master->GetBotMgr()->GetBotAllowCombatPositioning()))) && + if ((IsWanderer() || (!IAmFree() && (!_lastTargetGuid || !master->GetBotMgr()->GetBotAllowCombatPositioning()))) && !HasBotCommandState(BOT_COMMAND_STAY) && (!me->GetVehicle() || (!CCed(me->GetVehicleBase(), true) && !me->GetVehicleBase()->GetTarget()))) {