[Configuration] Fixed level

This commit is contained in:
Yunfan Li
2024-06-27 23:31:36 +08:00
parent 009be18646
commit 0129788ea3

View File

@@ -11,7 +11,7 @@ bool XpGainAction::Execute(Event event)
{
context->GetValue<uint32>("death count")->Set(0);
if (sPlayerbotAIConfig->randomBotFixedLevel) {
if (sRandomPlayerbotMgr->IsRandomBot(bot) && sPlayerbotAIConfig->randomBotFixedLevel) {
bot->SetUInt32Value(PLAYER_XP, 0);
return true;
}