mirror of
https://github.com/mod-playerbots/mod-playerbots.git
synced 2026-01-22 13:06:23 +00:00
fix classbots autogear not working when altbots autogear turned off (#1060)
* fix classbots autogear not working when altbots autogear turned off
This commit is contained in:
@@ -208,13 +208,11 @@ bool AutoGearAction::Execute(Event event)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!sPlayerbotAIConfig->autoGearCommandAltBots)
|
if (!sPlayerbotAIConfig->autoGearCommandAltBots &&
|
||||||
|
!sPlayerbotAIConfig->IsInRandomAccountList(bot->GetSession()->GetAccountId()))
|
||||||
{
|
{
|
||||||
if (!sRandomPlayerbotMgr->IsRandomBot(bot))
|
botAI->TellError("You cannot use autogear on alt bots.");
|
||||||
{
|
return false;
|
||||||
botAI->TellError("You cannot use autogear on alt bots.");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
botAI->TellMaster("I'm auto gearing");
|
botAI->TellMaster("I'm auto gearing");
|
||||||
|
|||||||
Reference in New Issue
Block a user