randombot refresh

This commit is contained in:
Yunfan Li
2023-08-07 23:34:05 +08:00
parent 7d26647b4b
commit 1381a4b809
6 changed files with 29 additions and 13 deletions

View File

@@ -833,8 +833,8 @@ bool RandomPlayerbotMgr::ProcessBot(uint32 bot)
}
}
if (botAI->HasPlayerNearby(sPlayerbotAIConfig->grindDistance))
update = false;
// if (botAI->HasPlayerNearby(sPlayerbotAIConfig->grindDistance))
// update = false;
}
if (update)
@@ -1428,8 +1428,8 @@ void RandomPlayerbotMgr::Refresh(Player* bot)
botAI->ResetStrategies(false);
}
if (sPlayerbotAIConfig->disableRandomLevels)
return;
// if (sPlayerbotAIConfig->disableRandomLevels)
// return;
if (bot->InBattleground())
return;
@@ -1472,9 +1472,6 @@ bool RandomPlayerbotMgr::IsRandomBot(Player* bot)
}
if (bot)
{
if (sPlayerbotAIConfig->IsInRandomAccountList(bot->GetSession()->GetAccountId()))
return true;
return IsRandomBot(bot->GetGUID().GetCounter());
}