another thing, you said it called twice after the energization, then we cant clear the lastAlpha like that... we need to find another way to clear it, maybe
lastUpdate = 0--time
lastAlpha = false -- rune
then we add at the top of the elseif
if lastUpdate + 2 < GetTime() then lastAlpha = false end
and in the if isEnergized == true statement add a
lastUpdate = GetTime()
so what im envisioning is
Code:
local runeIndex, isEnergize = ...
if isEnergize == true then
G["RuneButtonIndividual"..runeIndex]:SetAlpha(RHaic)
lastAlpha = runeIndex
lastUpdate = GetTime()
else
if lastUpdate and lastUpdate + 2 < GetTime() then lastAlpha = false end
if lastAlpha = nil then lastAlpha = false end
for i=1,6 do
if lastAlpha ~= i then
local isReady = select(3,GetRuneCooldown(i))
if isReady then
_G["RuneButtonIndividual"..i]:SetAlpha(1) --RHaic
else
_G["RuneButtonIndiviual"..i]:SetAlpha(0.2) -- RHaoc
end
end
end
end
EDIT: Going to work, let me know if those helped out any, but ill be getting off 6pm Pacific