From 92081c9f1af999806640204cc88c56ab76b1f0c1 Mon Sep 17 00:00:00 2001 From: Crow Date: Fri, 22 May 2026 21:24:47 -0500 Subject: [PATCH] Expand PWS Usage by Disc Priests (#2403) ## Pull Request Description Disc Priests currently do not use Power Word: Shield until a party member is at "medium health" (configurable, default 65%). That is the second-level healing threshold; at the highest level, "almost full health" (configurable, default 85%), Disc Priests will use only Prayer of Mending and Renew. This PR adds PWS as the highest priority healing action starting at "almost full health." ## Feature Evaluation - Describe the **minimum logic** required to achieve the intended behavior. - Describe the **processing cost** when this logic executes across many bots. Added new action "power word: shield on party" to "party member almost full health" trigger in HealPriestStrategy.cpp (the "heal" strategy, which is the default strategy for Disc Priests, as Holy Priests use the "holy heal" strategy). ## How to Test the Changes Group up with a Disc Priest and take damage; confirm that PWS is cast when you drop below your configured almost full health threshold. ## 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? - - [ ] No - - [x] Yes (**explain why**) PWS is the signature ability of Disc. Priests, and delaying it to 65% is significantly limiting their effectiveness in group content, particularly with raid bosses that deal raidwide damage and in heroic dungeons, where waiting until the tank hits 65% is a death wish. This single change makes an enormous difference in their effectiveness. See below for before/after change for Eredar Twins (focus on the activity). Before: Screenshot 2026-05-18 201949 After: image - 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/Class/Priest/Strategy/HealPriestStrategy.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Ai/Class/Priest/Strategy/HealPriestStrategy.cpp b/src/Ai/Class/Priest/Strategy/HealPriestStrategy.cpp index 35f764e4d..89e9895ab 100644 --- a/src/Ai/Class/Priest/Strategy/HealPriestStrategy.cpp +++ b/src/Ai/Class/Priest/Strategy/HealPriestStrategy.cpp @@ -86,6 +86,7 @@ void HealPriestStrategy::InitTriggers(std::vector& triggers) new TriggerNode( "party member almost full health", { + NextAction("power word: shield on party", ACTION_LIGHT_HEAL + 3), NextAction("prayer of mending on party", ACTION_LIGHT_HEAL + 2), NextAction("renew on party", ACTION_LIGHT_HEAL + 1) }