For resetSpells, even with cd reduction, icon stays on with no timer when it expires
SweepyBoop opened this issue ยท 9 comments
Should I start a new allstates[guid] instead of updating current one for reset spells?
Updating the expirationTime only seems broken.
old HOJ timer allstate:
show = true,
changed = true,
progressType = "timed",
duration = cooldown,
expirationTime = GetTime() + cooldown,
autoHide = true,
makeAllState makes:
show = true,
changed = true,
progressType = "timed",
duration = duration,
expirationTime = GetTime() + duration,
icon = select(3, GetSpellInfo(spellID)),
sound = spellData.sound,
index = spellData.index or defaultIndex,
stacks = charges,
unit = unit,
autoHide = true,
It's due to typo in reset spell, state.change = true
should be state.changed = true
Fixed in #2