mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-13 09:07:19 +00:00
Prevent autogear on player alt bots (#772)
* prevent autogear on player alt bots * update chat message to match other message format * add config option with default set to 1 * replace end of file blank line * remove extra space
This commit is contained in:
@@ -202,6 +202,16 @@ bool AutoGearAction::Execute(Event event)
|
||||
botAI->TellError("autogear command is not allowed, please check the configuration.");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!sPlayerbotAIConfig->autoGearCommandAltBots)
|
||||
{
|
||||
if (!sRandomPlayerbotMgr->IsRandomBot(bot))
|
||||
{
|
||||
botAI->TellError("You cannot use autogear on alt bots.");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
botAI->TellMaster("I'm auto gearing");
|
||||
uint32 gs = sPlayerbotAIConfig->autoGearScoreLimit == 0
|
||||
? 0
|
||||
|
||||
Reference in New Issue
Block a user