mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
[Configuration] Fixed level
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user