#can i combine these 2 WAs (very basic DoT tracking)?

6 messages · Page 1 of 1 (latest)

thorny bison
#

i have a WA that tracks if a DoT is not applied to a target which will show an icon telling me to apply said DoT

i then have another WA that tracks if this DoT has less than 3s left so i can re-apply it

can i combine these 2 WAs somehow?

i've tried playing around with the stuff in the Conditions tab (IF remaining duration is <= 3 THEN) but i couldn't get it to work on just the first WA above

thorny bison
#

i asked chatgpt lol and this is the code it gave me:

#

Function Type: Custom
Custom Trigger:
function(event, unit)
local name, _, _, _, duration, expirationTime = AuraUtil.FindAuraByName("Corruption", "target", "PLAYER|HARMFUL")
if name then
local timeLeft = expirationTime - GetTime()
return timeLeft <= 3
else
return true
end
end

fathom laurel
#

Don't trust ChatGPT with anything Weakaura related

viscid shale
#

1 aura, 2 triggers

#

1 for the dot missing, one for the duration being less than 3 sec