From d4f86764bb10ced3d8848d8978b6ae1a3a6dbd01 Mon Sep 17 00:00:00 2001 From: Crow Date: Sat, 16 May 2026 01:27:15 -0500 Subject: [PATCH] Fix raid group condition in SayToRaid (#2386) ## Pull Request Description PlayerbotAI::SayToRaid is not used currently but I may use it for Sunwell for bot speech during Kalecgos due to tank handoff mechanics. The function currently erroneously returns false for a bot in a raid. There's no impact on bot behavior or performance from this PR. ## Feature Evaluation - Describe the **minimum logic** required to achieve the intended behavior. - Describe the **processing cost** when this logic executes across many bots. ## How to Test the Changes ## Impact Assessment - Does this change increase per-bot/per-tick processing or risk scaling poorly with thousands of bots? - - [x] No, not at all - - [ ] Minimal impact (**explain below**) - - [ ] Moderate impact (**explain below**) - Does this change modify default bot behavior? - - [x] No - - [ ] Yes (**explain why**) - Does this change add new decision branches or increase maintenance complexity? - - [x] No - - [ ] Yes (**explain below**) ## AI Assistance Was AI assistance used while working on this change? - - [x] No - - [ ] Yes (**explain below**) ## Final Checklist - - [x] Stability is not compromised. - - [x] Performance impact is understood, tested, and acceptable. - - [x] Added logic complexity is justified and explained. - - [x] Any new bot dialogue lines are translated. - - [x] Documentation updated if needed (Conf comments, WiKi commands). ## Notes for Reviewers --- src/Bot/PlayerbotAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bot/PlayerbotAI.cpp b/src/Bot/PlayerbotAI.cpp index 8cfbe39a3..9678e2261 100644 --- a/src/Bot/PlayerbotAI.cpp +++ b/src/Bot/PlayerbotAI.cpp @@ -2877,7 +2877,7 @@ bool PlayerbotAI::SayToParty(const std::string& msg) bool PlayerbotAI::SayToRaid(const std::string& msg) { - if (!bot->GetGroup() || bot->GetGroup()->isRaidGroup()) + if (!bot->GetGroup() || !bot->GetGroup()->isRaidGroup()) return false; WorldPacket data;