From 92d63c7cbcec3ad8f92fce9c5322e65ce089dbee Mon Sep 17 00:00:00 2001 From: xSparky911x Date: Thu, 6 Mar 2025 06:31:46 -0600 Subject: [PATCH] fix classbots autogear not working when altbots autogear turned off (#1060) * fix classbots autogear not working when altbots autogear turned off --- src/strategy/actions/TrainerAction.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/strategy/actions/TrainerAction.cpp b/src/strategy/actions/TrainerAction.cpp index d25a7248..91de174a 100644 --- a/src/strategy/actions/TrainerAction.cpp +++ b/src/strategy/actions/TrainerAction.cpp @@ -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");