[Initialization] Ammo init

This commit is contained in:
Yunfan Li
2024-06-28 20:14:22 +08:00
parent 6abc8d51e9
commit 3556a38dcd
4 changed files with 8 additions and 13 deletions

View File

@@ -450,7 +450,7 @@ void PlayerbotHolder::OnBotLogin(Player* const bot)
if (isRandomAccount && sPlayerbotAIConfig->randomBotFixedLevel) {
bot->SetPlayerFlag(PLAYER_FLAGS_NO_XP_GAIN);
} else {
} else if (isRandomAccount && !sPlayerbotAIConfig->randomBotFixedLevel) {
bot->RemovePlayerFlag(PLAYER_FLAGS_NO_XP_GAIN);
}