Originally Posted by Fizzlemizz
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)
|
am using
Code:
--Deathkight Dity Hacky Hacky.
if Class == "DEATHKNIGHT" then
for i=1, playerMaxCombo do
local start, duration, runeReady = GetRuneCooldown(i)
if not runeReady then
playerCombo = playerCombo - 1
end
end
end
prob not the best way but its working.