So, I have created a rune bar which works pretty fine.
However, every time I use "Hearthstone" or "Garrison Hearthstone", it fails to process the following lines of code:
Lua Code:
local start, duration, runeReady = GetRuneCooldown(rid)
if(runeReady) then
rune:SetMinMaxValues(0, 1)
rune:SetValue(1)
rune:SetScript("OnUpdate", nil)
else
rune.duration = GetTime() - start
rune.max = duration
rune:SetMinMaxValues(1, duration)
rune:SetScript("OnUpdate", OnUpdate)
end
So, I've tested to find where the error was occurring and seems like when I use "Hearthstone", the "RUNE_POWER_UPDATE" event fails to process "GetRuneCooldown(rid)" which returns nil for its three outputs, start, duration and runeReady.
I don't get why this is happening
...
Could anyone please help me out with this?