hello all, trying to put together my first tsu here as a tricks of the trade tracker. right now all i'm trying to get a tricks icon + name for each rogue in the party, then when they cast tricks add a 30s countdown, to track their cooldown
https://wago.io/ZHqf6K2_Z
so far it successfully iterates the group and grabs all the rogues and gives them an icon - great
when casting the desired spell, the subevent seems to trigger fine - print functions return exactly what i'd expect, but the %p progress text is not being updated at all. changing the initialization duration and expiration to arbitrary numbers produces expected results, so i'm at a loss as to why i'm getting nothing out of the sub event firing
help!
function(allstates, event, timestamp, subEvent, hideCaster, sourceGUID, sourceName, sourceFlags, sourceRaidFlags, destGUID, destName, destFlags, destRaidFlags, spellId, ...)
if event == "GROUP_ROSTER_UPDATE" then
--TODO: purge if no longer in party
for unit in WA_IterateGroupMembers() do
local className, classFilename, classID = UnitClass(unit)
if classFilename == "ROGUE" then
local name = UnitName(unit)
allstates[name] = {
show = true,
changed = true,
progressType = "timed",
duration = 0,
expirationTime = 0,
name = name,
autoHide = false,
}
end
end
end
if subEvent == "SPELL_AURA_APPLIED" then
if spellId == "59628" then
allstates[sourceName].duration = 30
allstates[sourceName].expirationTime = GetTime() + 30
allstates[sourceName].changed = true
end
end
return true
end
Wago.io is a database of sharable World of Warcraft addon elements




