Skip to content

Core/Spells: Initialize StartPower with SPELL_AURA_ENABLE_ALT_POWER - #32159

Open
Nyr97 wants to merge 1 commit into
TrinityCore:masterfrom
Nyr97:master_AltPowerStart
Open

Nyr97 wants to merge 1 commit into
TrinityCore:masterfrom
Nyr97:master_AltPowerStart

Conversation

@Nyr97

@Nyr97 Nyr97 commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Changes proposed:

  • Fixed SPELL_AURA_ENABLE_ALT_POWER only setting the maximum of the alternate power bar, which left every bar starting empty; the bar now starts at UnitPowerBar.StartPower.

Issues addressed:

  • 99 of 328 UnitPowerBar rows set StartPower, 63 of them to the maximum (countdown timers, Breath Meter, Sanity, Hope).
  • Retail sniff: Breath Meter (1224700, bar 744) sets the player's alternate power to 200 / 200 in the same update that applies the aura.

Tests performed:

  • Tested in game with .cast 1224700 (Breath Meter), which starts the bar at 200 / 200 instead of 0 / 200.

Known issues and TODO list:

  • Resurrecting resets alternate power to the default value for that power type (needs specific testing on retail).
  • Some bars have their own regeneration rates, and they're never applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant