chore(value): attackers value

This commit is contained in:
Yunfan Li
2023-06-13 01:02:37 +08:00
parent c9367debeb
commit 209fdbd6b5
4 changed files with 30 additions and 4 deletions

View File

@@ -431,6 +431,7 @@ void PlayerbotHolder::OnBotLogin(Player* const bot)
uint32 accountId = bot->GetSession()->GetAccountId();
bool isRandomAccount = sPlayerbotAIConfig->IsInRandomAccountList(accountId);
bot->SaveToDB(false, false);
if (master && isRandomAccount && master->GetLevel() < bot->GetLevel()) {
PlayerbotFactory factory(bot, master->getLevel());
factory.Randomize(false);