mirror of
https://github.com/liyunfan1223/mod-playerbots.git
synced 2026-02-21 02:20:00 +01:00
[Configuration] Fixed level
This commit is contained in:
parent
009be18646
commit
0129788ea3
@ -11,11 +11,11 @@ bool XpGainAction::Execute(Event event)
|
|||||||
{
|
{
|
||||||
context->GetValue<uint32>("death count")->Set(0);
|
context->GetValue<uint32>("death count")->Set(0);
|
||||||
|
|
||||||
if (sPlayerbotAIConfig->randomBotFixedLevel) {
|
if (sRandomPlayerbotMgr->IsRandomBot(bot) && sPlayerbotAIConfig->randomBotFixedLevel) {
|
||||||
bot->SetUInt32Value(PLAYER_XP, 0);
|
bot->SetUInt32Value(PLAYER_XP, 0);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sRandomPlayerbotMgr->IsRandomBot(bot) || sPlayerbotAIConfig->playerbotsXPrate == 1)
|
if (!sRandomPlayerbotMgr->IsRandomBot(bot) || sPlayerbotAIConfig->playerbotsXPrate == 1)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user