9fb47ba - Add incoming ability glow and fix periodic aura update
[wowui.git] / kehys / updater.lua
index e8d889c..a3bd53c 100644 (file)
@@ -123,6 +123,16 @@ function addon.FrameUpdate(frame)
         elseif frame.healpred:IsShown() then
             frame.healpred:Hide();
         end
+        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);
+            frame.rounds = 0;
+        end
         -- tank CD marker
         if next(frame.tankcd) then
             if not frame.defensive:IsShown() then frame.defensive:Show() end
@@ -143,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