Use this one.
Code:
function()
local SPELL_ID = 78674 -- Set to SpellID of tracked ability
local chargesCurrent, chargesMax, cdStart, cdDuration = GetSpellCharges(SPELL_ID)
-- Function to check current number of charges to trigger
local timeCurrent = GetTime()
local curCD = (cdStart+cdDuration)-timeCurrent
if chargesCurrent < chargesMax then
if curCD < 5 and chargesCurrent == 2 then
return (string.format("%.1f", curCD))
else
return (string.format("%.0f", curCD))
end
else
return ("MAX")
end
end
1. Text module.
2. Display text --> " %c "
3. Paste code.
4. Place under SS tracker.