Repository navigation
Conversation
## What does this PR do? Fixes a blank combo point row on the WoW Forever player frame for druids who have not learned Cat Form yet. The Forever default class resource style is Modern, so every new druid sees an empty strip above the health bar that can never fill. Cause: on Forever the player frame treats every druid as having combo points. With the row placed above the health bar, the frame reserves its space, but the pips only show in Cat Form, which a druid without the spell can never enter. Fix: - `EllesmereUI.ForeverDruidLacksCat()` (`EllesmereUI_Presets.lua`) is one shared check: a Forever druid who does not know Cat Form. It returns false for every other class and on Retail. - Unit Frames: `ClassPowerEntry` returns no class resource while it holds, so no row is built and no space is reserved. A `SPELLS_CHANGED` watcher, created only for such a druid, builds the row once Cat Form is learned (deferred through the combat queue in combat), refreshes the options page and unregisters itself. - Options: Unit Frames "Enable Class Resource" and Resource Bars "Show Class Resource" are greyed out with a "Learn Cat Form to use combo points." tooltip and read as off, so the rows under them stay hidden. On the Resource Bars page, "Hide Power Bar if Resource" is greyed out and the cursor anchor row hidden the same way. Saved settings are never changed, so the player's choice returns once Cat Form is learned. Resource Bars needed no runtime change: on Forever it only shows combo points in Cat Form. Cost: one inert event frame on `SPELLS_CHANGED`, only for a Forever druid without Cat Form, gone once the spell is learned. Nothing on Retail or for any other class. ## How was it tested? Client: Forever - Druid without Cat Form: no blank row on the player frame; "Enable Class Resource" (Unit Frames) and "Show Class Resource" (Resource Bars) are greyed out and off. - Guardrails and the locale-key check pass. ## Checklist - [x] New settings default **OFF** (no behavior change without opt-in) - N/A: no new settings - [x] Zero cost while disabled: no events registered, no polling, no hooks doing work, no tickers; nothing built beyond an inert event frame or combat queue - the watcher exists only for a Forever druid without Cat Form - [x] Cheap while enabled: event-driven (no polling, no timer-based logic, no per-frame allocations) - [x] No writes onto Blizzard-owned frames (weak-table pattern used); `HookScript`/`hooksecurefunc` only, never `SetScript` on Blizzard frames - [x] Tested in-game on live; no version gates or pre-Midnight APIs added
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes a blank combo point row on the WoW Forever player frame for druids who have not learned Cat Form yet. The Forever default class resource style is Modern, so every new druid sees an empty strip above the health bar that can never fill.
Cause: on Forever the player frame treats every druid as having combo points. With the row placed above the health bar, the frame reserves its space, but the pips only show in Cat Form, which a druid without the spell can never enter.
Fix:
EllesmereUI.ForeverDruidLacksCat()(EllesmereUI_Presets.lua) is one shared check: a Forever druid who does not know Cat Form. It returns false for every other class and on Retail.ClassPowerEntryreturns no class resource while it holds, so no row is built and no space is reserved. ASPELLS_CHANGEDwatcher, created only for such a druid, builds the row once Cat Form is learned (deferred through the combat queue in combat), refreshes the options page and unregisters itself.Resource Bars needed no runtime change: on Forever it only shows combo points in Cat Form.
Cost: one inert event frame on
SPELLS_CHANGED, only for a Forever druid without Cat Form, gone once the spell is learned. Nothing on Retail or for any other class.Screenshots
Before:

After:



How was it tested?
Client: Forever
Checklist
HookScript/hooksecurefunconly, neverSetScripton Blizzard frames