From 0e0d9fbde2dd47ee908ac3948a978c38f6d0f599 Mon Sep 17 00:00:00 2001 From: kadeshar Date: Sat, 16 May 2026 08:27:30 +0200 Subject: [PATCH] Hand of Freedom fix for Stealth (#2388) ## Pull Request Description Paladin no longer using Hand of Freedom on Rogue with Stealth Related with: #2385 ## How to Test the Changes 1. Invite paladin and rogue to group 2. Start fight 3. Rogue should use Stealth on fight beginning, Paladin should cast Hand of Freedom 4. Apply some snare effect to Rogue bot (for example .aura 1715) 5. Paladin bot should use hand of freedom ## 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/Ai/Base/Value/PartyMemberSnaredTargetValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ai/Base/Value/PartyMemberSnaredTargetValue.cpp b/src/Ai/Base/Value/PartyMemberSnaredTargetValue.cpp index 02f726b0f..810090b5b 100644 --- a/src/Ai/Base/Value/PartyMemberSnaredTargetValue.cpp +++ b/src/Ai/Base/Value/PartyMemberSnaredTargetValue.cpp @@ -29,7 +29,7 @@ public: if (!botAI->GetBot()->IsWithinLOSInMap(unit)) return false; - return botAI->IsMovementImpaired(unit); + return botAI->IsMovementImpaired(unit) && !botAI->HasAnyAuraOf(unit, "stealth", "prowl", nullptr); } };