View Single Post
05-18-16, 09:53 AM   #9
ebonyfaye
A Fallenroot Satyr
 
ebonyfaye's Avatar
AddOn Author - Click to view addons
Join Date: Jun 2009
Posts: 27
Originally Posted by Fizzlemizz View Post
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.