Hi everyone,
I am trying to make a counter that can count how many people are standing in my resto druid effloresence. And I have a piece of code that shows that correctly.
But I would like to to add conditions to add a border glow if it is less than 3. And it almost works. If there are 1 or 2 people in the effloresence the border shows up correctly but not if there are 0 people standing in it. So I am guessing that the "stacks" from this lua function is not returning 0 even if there are 0. Because 0 is less than 3. Can anyone see what might be wrong?
function(s,e,arg2,,,source,,,,,,,_,spellID)
if spellID == 81269 and source == WeakAuras.myGUID then
local t = GetTime()
if not s[""] or t > s[""].hitTime + 0.3 then
s[""] = {
show = true,
hitTime = t,
stacks = 0,
count = 0,
}
end
s[""].stacks = s[""].stacks + 1
s[""].count = s[""].stacks
s[""].duration = 2
s[""].autoHide = true
s[""].changed = true
return true
end
end
Custom Valriables
{stacks = true}