9fb47ba - Add incoming ability glow and fix periodic aura update
[wowui.git] / kehys / updater.lua
index bb8fba1..a3bd53c 100644 (file)
@@ -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