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;