From 7298d89c9ae55e520658c3e2a2352a440f505306 Mon Sep 17 00:00:00 2001 From: Docker Build Date: Sat, 9 May 2026 15:54:39 -0400 Subject: [PATCH] mod-paragon: default HasActivePowers on for rage from white hits Paragon OnPlayerHasActivePowerType only reported POWER_RAGE when Paragon.MultiResource.HasActivePowers was true. Core melee rage uses Unit::DealDamage -> HasActivePowerType(POWER_RAGE) before RewardRage; missing module config (common on fresh clones / Docker without merged mod_paragon.conf) fell through to GetOption(..., false) and white swings never generated rage. Match mod_paragon.conf.dist and default the C++ fallback to true so Paragon behaves correctly out of the box. Set Paragon.MultiResource.HasActivePowers = 0 only for intentional test builds. Co-authored-by: Cursor --- modules/mod-paragon/conf/mod_paragon.conf.dist | 5 +++++ modules/mod-paragon/src/Paragon_SC.cpp | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/mod-paragon/conf/mod_paragon.conf.dist b/modules/mod-paragon/conf/mod_paragon.conf.dist index 98c106d..7c35998 100644 --- a/modules/mod-paragon/conf/mod_paragon.conf.dist +++ b/modules/mod-paragon/conf/mod_paragon.conf.dist @@ -12,6 +12,11 @@ Paragon.StickyComboPoints = 1 # in addition to runes/runic power. Required for the patch-enUS-5.MPQ player # frame to populate Mana/Rage/Energy bars - otherwise the server treats those # powers as inactive and never sends max values, leaving the bars empty. +# Also required for core rage generation: Unit::DealDamage only calls +# RewardRage() when the attacker HasActivePowerType(POWER_RAGE); if this is off, +# Paragon white swings never grant rage (users without this line in any loaded +# config used to hit the C++ fallback default of false). Default is on; set 0 +# only if you intentionally want a stripped-down Paragon test build. Paragon.MultiResource.HasActivePowers = 1 # Ability / Talent Essence (AE/TE) — Ascension-inspired currency diff --git a/modules/mod-paragon/src/Paragon_SC.cpp b/modules/mod-paragon/src/Paragon_SC.cpp index 39b3e40..b927d9c 100644 --- a/modules/mod-paragon/src/Paragon_SC.cpp +++ b/modules/mod-paragon/src/Paragon_SC.cpp @@ -37,7 +37,7 @@ public: { LOG_INFO("module", "[paragon] Paragon_PlayerScript registered " "(MultiResource.HasActivePowers={})", - sConfigMgr->GetOption("Paragon.MultiResource.HasActivePowers", false)); + sConfigMgr->GetOption("Paragon.MultiResource.HasActivePowers", true)); } [[nodiscard]] Optional OnPlayerIsClass(Player const* player, Classes unitClass, ClassContext context) override @@ -77,7 +77,7 @@ public: if (power == POWER_RUNIC_POWER || power == POWER_RUNE) return true; - if (sConfigMgr->GetOption("Paragon.MultiResource.HasActivePowers", false)) + if (sConfigMgr->GetOption("Paragon.MultiResource.HasActivePowers", true)) { switch (power) {