diff --git a/src/PlayerbotMgr.cpp b/src/PlayerbotMgr.cpp index 074c7a3b..368a216b 100644 --- a/src/PlayerbotMgr.cpp +++ b/src/PlayerbotMgr.cpp @@ -519,7 +519,7 @@ void PlayerbotHolder::OnBotLogin(Player* const bot) } group = bot->GetGroup(); - if (!group) + if (group) { botAI->ResetStrategies(); } diff --git a/src/RandomPlayerbotMgr.cpp b/src/RandomPlayerbotMgr.cpp index 1a28e40c..63ab1e04 100644 --- a/src/RandomPlayerbotMgr.cpp +++ b/src/RandomPlayerbotMgr.cpp @@ -1521,7 +1521,7 @@ bool RandomPlayerbotMgr::ProcessBot(Player* bot) { PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot); - if (botAI) + if (!botAI) return false; if (bot->InBattleground()) @@ -2379,7 +2379,7 @@ void RandomPlayerbotMgr::IncreaseLevel(Player* bot) void RandomPlayerbotMgr::RandomizeFirst(Player* bot) { PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot); - if (botAI) + if (!botAI) return; uint32 maxLevel = sPlayerbotAIConfig->randomBotMaxLevel; @@ -2474,7 +2474,7 @@ void RandomPlayerbotMgr::RandomizeFirst(Player* bot) void RandomPlayerbotMgr::RandomizeMin(Player* bot) { PlayerbotAI* botAI = GET_PLAYERBOT_AI(bot); - if (botAI) + if (!botAI) return; PerformanceMonitorOperation* pmo = sPerformanceMonitor->start(PERF_MON_RNDBOT, "RandomizeMin");