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:
xSparky911x
2025-03-06 06:31:46 -06:00
committed by GitHub
parent b9747fdd69
commit 92d63c7cbc

View File

@@ -208,13 +208,11 @@ bool AutoGearAction::Execute(Event event)
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");