mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
fixes
This commit is contained in:
@@ -519,7 +519,7 @@ void PlayerbotHolder::OnBotLogin(Player* const bot)
|
||||
}
|
||||
|
||||
group = bot->GetGroup();
|
||||
if (!group)
|
||||
if (group)
|
||||
{
|
||||
botAI->ResetStrategies();
|
||||
}
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user