X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/e8fd612480ba390ff165a7bed320422320e551a4..47f7fb23bd02498d61971c26615acb0ad720a2ae:/kehys/auras.lua?ds=sidebyside diff --git a/kehys/auras.lua b/kehys/auras.lua index de01fa9..f777e22 100644 --- a/kehys/auras.lua +++ b/kehys/auras.lua @@ -32,6 +32,9 @@ local watchedAuras = { [102342] = {1, "tankcd"}, -- Ironbark [116849] = {1, "tankcd"}, -- Life Cocoon [196555] = {1, "tankcd"}, -- Netherwalk + --[124275] = {1, "stagger"}, -- Light Stagger (Monk) + --[124274] = {1, "stagger"}, -- Moderate Stagger (Monk) + [124273] = {1, "stagger"}, -- Heavy Stagger (Monk) -- M+ [209858] = {1, "stacks"}, -- Necrotic Wound (M+) [240559] = {1, "stacks"}, -- Grievous Wound (M+) @@ -102,6 +105,8 @@ local watchedAuras = { [327814] = {1, "heal"}, -- Wicked Gash (Gauntlet) (Sanguine Depths) [323687] = {1, "heal"}, -- Arcane Lightning (De Other Side) [324154] = {1, "heal"}, -- Dark Stride (Spires of Ascension) + [335305] = {1, "heal"}, -- Barbed Shackles (Sanguine Depths) + [336279] = {1, "heal"}, -- Explosive Anger (Sanguine Depths) -- Castle Nathria [346301] = {1, "stacks"}, -- Bloodlight (Shriekwing) [328897] = {7, "alert"}, -- Exsanguinated (Shriekwing) @@ -116,12 +121,13 @@ local watchedAuras = { [324982] = {1, "heal"}, -- Shared Suffering (Lady Inerva Darkvein) [324983] = {1, "heal"}, -- Shared Suffering (Lady Inerva Darkvein) [340860] = {1, "heal", 14}, -- Withering Touch (Artificer Xy'mox) + [326302] = {1, "alert"}, -- Stasis Trap (Artificer Xy'mox) [334771] = {1, "heal"}, -- Heart Hemorrhage (Stone Legion Generals) [326699] = {1, "stacks"}, -- Burden of Sin (Sire Denathrius) [329298] = {1, "alert"}, -- Gluttonous Miasma (Hungering Destroyer) [334755] = {14, "heal"}, -- Essence Sap (Hungering Destroyer) [343320] = {1, "alert"}, -- Curse of Caramain (Trash) - [333913] = {2, "stacks"}, -- Wicked Laceration (Stone Legion Generals) + [333913] = {1, "stacks"}, -- Wicked Laceration (Stone Legion Generals) }; local playerGuid = nil; @@ -133,8 +139,8 @@ auraEvents.SPELL_AURA_APPLIED = function(frame, id, source, _, _, atype, amount) frame[watchedAuras[id][2]][id] = amount; elseif atype == "DEBUFF" then frame[watchedAuras[id][2]][id] = amount; - if watchedAuras[id][3] ~= nil then - frame.stacks[id] = watchedAuras[id][3]; + if watchedAuras[id][3] ~= nil and frame.hits[id] == nil then + frame.hits[id] = watchedAuras[id][3]; end end end @@ -147,6 +153,9 @@ auraEvents.SPELL_AURA_REMOVED = function(frame, id, source, _, _, atype, amount) frame[watchedAuras[id][2]][id] = nil; elseif atype == "DEBUFF" then frame[watchedAuras[id][2]][id] = nil; + if watchedAuras[id][3] ~= nil then + frame.hits[id] = nil; + end end end end @@ -157,16 +166,18 @@ end auraEvents.SPELL_AURA_BROKEN_SPELL = auraEvents.SPELL_AURA_BROKEN; auraEvents.SPELL_PERIODIC_DAMAGE = function(frame, id, source) if watchedAuras[id][3] ~= nil then - if frame.stacks[id] ~= nil and frame.stacks[id] > 0 then - frame.stacks[id] = frame.stacks[id] - 1; - if frame.stacks[id] == 0 then - frame.stacks[id] = nil; + if frame.hits[id] ~= nil and frame.hits[id] > 0 then + frame.hits[id] = frame.hits[id] - 1; + if frame.hits[id] == 0 then + frame.hits[id] = nil; end - elseif frame.stacks[id] ~= nil then - frame.stacks[id] = nil; + elseif frame.hits[id] ~= nil then + frame.hits[id] = nil; end end end +auraEvents.SPELL_PERIODIC_ABSORBED = auraEvents.SPELL_PERIODIC_DAMAGE; +auraEvents.SPELL_PERIODIC_MISSED = auraEvents.SPELL_PERIODIC_DAMAGE; local counter = 0; local function clog(ts, event, _, source, _, _, _, dest, _, _, _, spellid, ...)