Hi,
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.
Trigger: COMBAT_LOG_EVENT_UNFILTERED
Lua Code:
function(event, ...)
local wa_stealthed, wa_vanishing
for i=1,40 do
appliedBuff = UnitAura("player", i, "PLAYER|HELPFUL")
if (select(1, appliedBuff) == "Stealth") then
DEFAULT_CHAT_FRAME:AddMessage("Detected Stealth...");
wa_stealthed = appliedBuff
elseif (select(1, appliedBuff) == "Vanish") then
DEFAULT_CHAT_FRAME:AddMessage("Detected Vanish...");
wa_vanishing = appliedBuff
end
end
-- Next I detect rupture from the event and determine what to display etc.
end
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?
Thanks