X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/3c2cef6ffb99d6e8febf3a4df2b4b51ee0b9c2aa..fb13e34ef34a0d06235ca2b6dd3de0f5dbbd7fd8:/kehys/auras.lua?ds=sidebyside diff --git a/kehys/auras.lua b/kehys/auras.lua index ecefd00..40f7446 100644 --- a/kehys/auras.lua +++ b/kehys/auras.lua @@ -17,32 +17,35 @@ local watchedAuras = { --[266209] = {bar=false}, -- Wicked Frenzy --[258323] = {bar=false}, -- Infected Wound --[262513] = {bar=false}, -- Azerite Heartseeker + -- Tank defensives + [6940] = {1, "tankcd"}, -- Blessing of Sacrifice + [33206] = {1, "tankcd"}, -- Pain Suppression + [47788] = {1, "tankcd"}, -- Guardian Spirit + [102342] = {1, "tankcd"}, -- Ironbark + [116849] = {1, "tankcd"}, -- Life Cocoon -- Uldir [265264] = {2, "alert"}, -- Void Lash (Zek'voz) -- Battle of Dazar'alor [285213] = {1, "alert"}, -- Caress of Death (Rastakhan) - [285195] = {12, "heal"}, -- Deathly Withering (Rastakhan) + [288415] = {1, "alert"}, -- Caress of Death in Death realm (Rastakhan) + [285195] = {8, "stacks"}, -- Deathly Withering (Rastakhan) + [286646] = {1, "heal"}, -- Gigavolt Charge (Mekkatorque) + [287891] = {1, "stacks"}, -- Sheep Shrapnel (Mekkatorque) + [285212] = {10, "stacks"}, -- Chilling Touch (Jaina) }; local auraEvents = {}; auraEvents.SPELL_AURA_APPLIED = function(frame, id, _, _, _, amount) if (amount == nil and watchedAuras[id][1] == 1) or (amount ~= nil and amount >= watchedAuras[id][1]) then - if watchedAuras[id][2] == "alert" then - frame.alert[id] = true; - else - frame.heal[id] = true; - end + amount = amount or 1; + frame[watchedAuras[id][2]][id] = amount; end end auraEvents.SPELL_AURA_APPLIED_DOSE = auraEvents.SPELL_AURA_APPLIED; auraEvents.SPELL_AURA_REFRESH = auraEvents.SPELL_AURA_APPLIED; auraEvents.SPELL_AURA_REMOVED = function(frame, id, _, _, _, amount) if amount == nil or amount == 0 then - if watchedAuras[id][2] == "alert" then - frame.alert[id] = nil; - else - frame.heal[id] = nil; - end + frame[watchedAuras[id][2]][id] = nil; end end auraEvents.SPELL_AURA_REMOVED_DOSE = auraEvents.SPELL_AURA_REMOVED;