LUA: Detecting stealth in WeakAuras 2
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:
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 |
All times are GMT -6. The time now is 12:30 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI