X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/9d2b39eafbaccdfcc3ea838f41e0af1a963b5ed6..9fb47ba879ec613725953c2044ce7e6419af2e3f:/kehys/updater.lua?ds=sidebyside diff --git a/kehys/updater.lua b/kehys/updater.lua index bb8fba1..a3bd53c 100644 --- a/kehys/updater.lua +++ b/kehys/updater.lua @@ -21,7 +21,6 @@ local ignoredAuras = { [315176] = true, -- Grasping Tendrils }; -local rounds = 0; function addon.FrameUpdate(frame) assert(type(frame) == "table", "FrameUpdate received invalid frame parameter!"); @@ -124,15 +123,15 @@ function addon.FrameUpdate(frame) elseif frame.healpred:IsShown() then frame.healpred:Hide(); end - rounds = rounds + 1; - if (rounds > 8) then + frame.rounds = frame.rounds + 1; + if (frame.rounds > 7) then frame.tankcd = {}; frame.alert = {}; frame.stacks = {}; frame.heal = {}; frame.buff1 = {}; addon.SetAuras(frame.unit, frame.guid); - rounds = 0; + frame.rounds = 0; end -- tank CD marker if next(frame.tankcd) then @@ -154,6 +153,12 @@ function addon.FrameUpdate(frame) elseif frame.buffind1:IsShown() then frame.buffind1:Hide(); end + -- incoming ability + if next(frame.incoming) then + if not frame.glow:IsShown() then frame.glow:Show() end + elseif frame.glow:IsShown() then + frame.glow:Hide(); + end -- overlays if next(frame.alert) then -- major