I'm trying to set up WeakAuras for a friends rogue. He want's it to show when it's good to re-apply things like rupture (E.g. if he opened from stealth using rupture it's better to wait until the DoT ends before using it again as the new DoT will do less damage, and to include the pandemic timer etc). Using /run in game I can detect stealth using `UnitAura` but it's not working in WeakAuras.
local wa_stealthed, wa_vanishing
appliedBuff = UnitAura("player", i, "PLAYER|HELPFUL")
-- Next I detect rupture from the event and determine what to display etc.
The chat messages in the code above never appear in chat when Rupture triggers the event, but it works in chat with /run (although I need to remove the elseif and variables to shorten it to fit in chat).
All I can think of is that by the time Rupture triggers the event it has already removed stealth from the player. So I added a second event `UPDATE_STEALTH` to the same trigger just to see if it would work but when entering and leaving stealth that event doesn't fire.
Can anyone suggest another way to do this? Alternatively is it possible to detect how much damage the DoT is doing vs how much the next one will do?