From 34b0d0404b134f2b05e6e236fc00d67fd4166b32 Mon Sep 17 00:00:00 2001 From: Karrz1 <127596890+Karrz1@users.noreply.github.com> Date: Mon, 9 Nov 2026 20:44:54 +0000 Subject: [PATCH] A bot on Passive that is told to attack goes to Defensive and says so (cherry picked from commit bd31e60d3efbdcfdcce60cde529c9ba4d81efc4b) --- src/modules/PlayerbotV2/Bot/BotCommandParser.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/modules/PlayerbotV2/Bot/BotCommandParser.cpp b/src/modules/PlayerbotV2/Bot/BotCommandParser.cpp index 9a954dd87e..9efdae347f 100644 --- a/src/modules/PlayerbotV2/Bot/BotCommandParser.cpp +++ b/src/modules/PlayerbotV2/Bot/BotCommandParser.cpp @@ -4736,7 +4736,17 @@ bool BotCommandParser::DispatchSingleImpl(Player* sender, Player* bot, std::stri // The owner's Attack is the group's go whoever may open (live MC 2026-10-11: the marked mob was idle, only the main tank got the // order, and the other 38 bots never saw an Attack): PveGroupCoordinator latches the raid's release from it. if (BotAI* attack_ai = Services::Registry().ai(bot->GetGUID().GetCounter())) + { attack_ai->note_owner_attack(GameTime::GetGameTimeMS()); + // An Attack while the panel's Passive is on was dropped without a word: every bot but the healer stood still and "ignored" + // the orders (Discord 2026-11-09). The owner's own Attack ends Passive: the bot goes to defensive and says so. + if (attack_ai->owner_no_fight() && attack_ai->set_owner_stance(BotAI::OwnerStance::Passive)) + { + TC_LOG_INFO("playerbot.v2", "[owner_order] {} <- {}: attack ends passive (now defensive)", bot->GetName(), sender->GetName()); + Push(bot, WhisperIntent{sender->GetName(), + "I was on Passive (I attack nothing), so your Attack sets me to Defensive. The stance button on the bot panel sets it too."}); + } + } // Raid map, nobody fighting the unit yet: only the main tank opens (RaidPullGateAllows); the others wait for // the normal pull gate or assist once it is in combat. if (!RaidPullGateAllows(bot, target))