mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
[Configuration] Random bots fixed level
This commit is contained in:
@@ -11,11 +11,6 @@ bool XpGainAction::Execute(Event event)
|
||||
{
|
||||
context->GetValue<uint32>("death count")->Set(0);
|
||||
|
||||
if (sRandomPlayerbotMgr->IsRandomBot(bot) && sPlayerbotAIConfig->randomBotFixedLevel) {
|
||||
bot->SetUInt32Value(PLAYER_XP, 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!sRandomPlayerbotMgr->IsRandomBot(bot) || sPlayerbotAIConfig->playerbotsXPrate == 1)
|
||||
return true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user