#Shield Block

3 messages · Page 1 of 1 (latest)

fair crescent
#

I have this weakaura I got somewhere from a long time ago. I saw that GetSpellCharges was changed into C_Spell.GetSpellCharges but this one is still giving me errors. Its saying im trying to return a table instead of a number. To be honest I am a total noob with lua code. Would appriciate how to solve this one.

Context, Its displaying my first shieldblock charge as a progress bar, I have another copy of it to display the 2nd charge.

function()
local currentCharges,_,cooldownStartTime,cooldownDuration = C_Spell.GetSpellCharges(2565)
if currentCharges <1 then return cooldownDuration,cooldownStartTime+cooldownDuration end
if currentCharges >= 1 then return 0,1,true end
return 1,1,true
end

torn robin
#

that doesnt need any code.

#

the additional options below the ⚙️ icon have tracking a specific charge.