From 0129788ea3bb6785644cfe894c8b436ab998c850 Mon Sep 17 00:00:00 2001 From: Yunfan Li Date: Thu, 27 Jun 2024 23:31:36 +0800 Subject: [PATCH] [Configuration] Fixed level --- src/strategy/actions/XpGainAction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/strategy/actions/XpGainAction.cpp b/src/strategy/actions/XpGainAction.cpp index a82eacff..c446780f 100644 --- a/src/strategy/actions/XpGainAction.cpp +++ b/src/strategy/actions/XpGainAction.cpp @@ -11,11 +11,11 @@ bool XpGainAction::Execute(Event event) { context->GetValue("death count")->Set(0); - if (sPlayerbotAIConfig->randomBotFixedLevel) { + if (sRandomPlayerbotMgr->IsRandomBot(bot) && sPlayerbotAIConfig->randomBotFixedLevel) { bot->SetUInt32Value(PLAYER_XP, 0); return true; } - + if (!sRandomPlayerbotMgr->IsRandomBot(bot) || sPlayerbotAIConfig->playerbotsXPrate == 1) return true;