Hi,
I am trying to create a simple custom trigger to determine if Evocation is off cd OR has less than 20 secs left cooldown.
I want it to return true when either Evocation cd has less than < 20 secs or its completely off CD. Sounds simple enough right?
Custom trigger part:
Code:
function(...)
local start, duration, enabled = GetSpellCooldown("Evocation");
if (duration < 20) then
return true
end
end
Custom Untrigger part:
Code:
function(...)
local start, duration, enabled = GetSpellCooldown("Evocation");
if (duration > 20) then
return true
end
end
THe problem I am having is that doesnt show up when Evocation cooldown is < 20, it only shows up when is OFF COOLDOWN, aka when duration = 0
I have it set to type status and every frame.
Any idea whats wrong?