570b5ba - Add Mekkatorque mythic auras
[wowui.git] / kehys / updater.lua
index eed2eaf..8083a93 100644 (file)
@@ -133,6 +133,12 @@ function addon.FrameUpdate(frame)
         elseif frame.stack:IsShown() then
             frame.stack:Hide();
         end
+        -- custom buff indicator 1
+        if next(frame.buff1) then
+            if not frame.buffind1:IsShown() then frame.buffind1:Show() end
+        elseif frame.buffind1:IsShown() then
+            frame.buffind1:Hide();
+        end
         -- overlays
         if next(frame.alert) then
             -- major
@@ -141,11 +147,11 @@ function addon.FrameUpdate(frame)
                 frame.overlay.color = majorcolor;
                 if not frame.overlay:IsShown() then frame.overlay:Show() end
             end
-        elseif next(frame.heal) then
-            -- major heals needed
-            if frame.overlay.color ~= healcolor then
-                frame.overlay:SetVertexColor(unpack(healcolor));
-                frame.overlay.color = healcolor;
+        elseif UnitDebuff(unit, 1, "RAID") ~= nil then
+            -- dispellable
+            if frame.overlay.color ~= dispelcolor then
+                frame.overlay:SetVertexColor(unpack(dispelcolor));
+                frame.overlay.color = dispelcolor;
                 if not frame.overlay:IsShown() then frame.overlay:Show() end
             end
         elseif UnitIsCharmed(unit) and frame.unit == frame.displayed then
@@ -155,11 +161,11 @@ function addon.FrameUpdate(frame)
                 frame.overlay.color = charmcolor;
                 if not frame.overlay:IsShown() then frame.overlay:Show() end
             end
-        elseif UnitDebuff(unit, 1, "RAID") ~= nil then
-            -- dispellable
-            if frame.overlay.color ~= dispelcolor then
-                frame.overlay:SetVertexColor(unpack(dispelcolor));
-                frame.overlay.color = dispelcolor;
+        elseif next(frame.heal) then
+            -- major heals needed
+            if frame.overlay.color ~= healcolor then
+                frame.overlay:SetVertexColor(unpack(healcolor));
+                frame.overlay.color = healcolor;
                 if not frame.overlay:IsShown() then frame.overlay:Show() end
             end
         else