CURRENT_MAX_RUNES = 0
MAX_RUNE_CAPACITY = 7
And to set the cooldown for a particular run it uses :
Code:
function RuneFrame_RunePowerUpdate(runeIndex, isEnergize)
....
local start, duration, runeReady = GetRuneCooldown(runeIndex)
...
end
to get the current max. runes and hide the ones that exceed it:
Code:
CURRENT_MAX_RUNES = UnitPowerMax("player", SPELL_POWER_RUNES)