mirror of
https://github.com/brues-code/pfUI.git
synced 2026-11-01 16:36:56 +00:00
1.12's UNIT_MANA, UNIT_RAGE and the rest fire for every power a unit has, not only the one it shows, so a druid in cat or bear form redrew every frame showing them, health colours and texts included, on each mana tick. ClassicAPI's generic power events name the power in arg2. Unit frames register them on their own token and redraw only for the power their bar shows, or for mana under a druid mana bar. They fire for tokens only, so the GUID-followed target-of-X frames keep the per-type events; those now share one list with UNIT_AURA, so a frame swaps auras and power on the same check. energytick counts gains on the power it tracks alone, so a cat druid's mana regen is no longer read as energy. It forgets the power while hidden, so a bear's mana ticks are not measured against rage, and re-baselines on a shift, so leaving cat form is not a fake mana gain. The equipment manager's dining trigger wakes on mana changes only.