Wago Revenge Weak Aura Link
Haven't tested it much, but seems to be working as intended. Triggers when you dodge, block or parry and hides after 5 seconds or when you use Revenge. Made with 3.2.3 WeakAura, but should conceptually work with any version, as it doesn't use any modern WA features.
Incase the import doesn't work for you, but you know how to make a weak aura with a custom event trigger: Make it trigger on COMBAT_LOG_EVENT_UNFILTERED and use the following functions:
Trigger function:
Code:
function(event, timestamp, subEvent, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags, ...)
WA_REVENGE_DUR = 5
local playerGUID = UnitGUID("player")
local a, b, c, d, e, f, g, h = ...
if destGUID == playerGUID and ((subEvent == "SWING_MISSED" and (a == "BLOCK" or a == "DODGE" or a == "PARRY")) or (subEvent == "SPELL_MISSED" and (d == "BLOCK" or d == "DODGE" or d == "PARRY")) or (subEvent == "SWING_DAMAGE" and e) or (subEvent == "SPELL_DAMAGE" and h)) then
WA_REVENGE_END = GetTime() + WA_REVENGE_DUR
return true
elseif sourceGUID == playerGUID and subEvent == "SPELL_CAST_SUCCESS" and a == 57823 then
WA_REVENGE_END = GetTime()
return true
end
end
Set to timed untrigger with dynamic information checked and the following function:
Code:
function()
return WA_REVENGE_DUR or 0, WA_REVENGE_END or 0
end
Icon function [or just set this in appearance].
Code:
function()
return select(3, GetSpellInfo(57823))
end