Disclaimer: I'm using weakauras2, which you can find here: https://github.com/Bunny67/WeakAuras-WotLK
If you've got a solution using the old 2.0.8 version, I've got that on my PC somewhere too, but I thought the more versatile version would stand a better chance.
I'm currently trying to set up a weakaura to track when my revenge is usable, for PvP reasons.
Revenge can only be used after I dodge/parry/block, an attack or ability. Tracking whether the ability is 'Usable' doesn't work, since it wouldn't show up in battle stance (revenge is only usable in def stance). However, I need to know if I can use it after swapping to def, even in my other stances.
The way I went about it cause of this, is making 6 triggers (enemy swing parry, enemy swing dodge, enemy swing block, enemy ability parry, enemy ability dodge, enemy ability block), which all trigger the same Icon, showing me I've got a proc. The procs last for 4 seconds (unlike with rend procs, there isn't a buff on my character, 4s is just how long I've got to use the ability), so that's how long I put the 'hide' function for. https://imgur.com/e3HV4rt https://imgur.com/ueML4lN
However, If I use the proc, and do a revenge, the icon doesn't disappear (I want it to be gone until my next proc for obvious reasons). Only after 4 seconds does it disappear, as per the settings, which makes sense.
Does anyone know of a way to make the triggers untrigger when the ability is cast? I tried adding a 7th trigger which is me casting Revenge, and setting up the 'conditions' so that the opacity goes to 0 when it's triggered, but that doesn't work. The last trigger needs a timer as well, but the timer I would set here would be a duration when following procs are suppressed. So I need a method that clears the previous triggers when I cast the ability, but then lets new procs flow in. Basically an event-like hide.
The most obvious would be a programmable untrigger for combat log events, but that doesn't exist in this version of the addon. Custom triggers altogether could solve the issue, but I don't know how to do those.
Here is the import string of the addon in its current state, if anyone wants to experiment with it:
Hey!
This works wonderfully so far as I can tell! Thank you!
Originally, I was hoping that the answer would be simple, and I could transfer the method used to an overpower proc as well. Triggers for that are the target (as opposed to the player) dodging/parrying (blocking is not relevant here). But seeing as the solution is LUA code that goes beyond boolean logic, I have a hard time trying to adapt it.
Could you make a WA that does the same thing, but with the target dodging/parrying a player swing/ability, instead of the player blocking/dodging/parrying for overpower? If it is too much trouble, or too much to ask for, I'm sorry and I will try to modify the code to adapt it myself, but I've been struggling with it for the past hour without much success.
For anyone else reading the thread: If you jus try to import the strings (both mine and Kapii's) as is, it won't work. The warmane forum automatically inserts space characters in the string, which ruins the import. You can go to a text editor and search-replace the space characters with nothing, then it will work.
EDIT:
I figured it out, and also added Rend procs to the overpower WA:
For anyone else reading the thread: If you jus try to import the strings (both mine and Kapii's) as is, it won't work. The warmane forum automatically inserts space characters in the string, which ruins the import. You can go to a text editor and search-replace the space characters with nothing, then it will work.
Hey man, could you make one that works for weakaura 4.0.0?
Im using an Icon Aura with 12 diffrent triggers that comes up with a 4 second timer each time a swing, ranged, spell or periodic spell is dodged, parried, blocked. With Player as destination unit.
It always plays through the whole 4 seconds even after I use Revenge, so another proc that came during those 4 seconds are playing behind the first trigger aura.
If you understand what I mean.
I guess it has to be custome code on a custom event in the conditions tab?
I cant figure out how to make the aura disappear for each use of the Revenge spell.