PitBull4_PowerBarAlt
This functionality is now part of PitBull4! Please uninstall after updating to v4.0.0-beta23 or later
Shows an "alternate power" bar on PitBull unit frames for boss encounters like Atramedes and Cho'gall.
The default PlayerPowerBarAlt frame is hidden by default, you can change this in the PitBull4 config under Modules -> Alternate power bar.
This is pretty much the PowerBar module from PitBull4 by ckknight and Shefki stripped down and adapted to use the ALTERNATE_POWER_INDEX flag.
To show the percentage with LuaTexts you can use:
local max = UnitPowerMax(unit, 10) if max > 0 then return "%s%%",Percent(UnitPower(unit, 10),max) end
Updating on events UNIT_POWER and UNIT_MAXPOWER