3c2cef6 - Decrease high healing overlay opacity
[wowui.git] / kehys / updater.lua
index f881ff7..f51d200 100644 (file)
@@ -15,6 +15,7 @@ local UnitGetTotalHealAbsorbs = UnitGetTotalHealAbsorbs;
 local dispelcolor = addon.Colors.OverlayColorDispel;
 local charmcolor = addon.Colors.OverlayColorCharm;
 local majorcolor = addon.Colors.OverlayColorAlert;
+local healcolor = addon.Colors.OverlayColorHeal;
 
 local function updateAuras()
     -- TODO
@@ -126,13 +127,20 @@ function addon.FrameUpdate(frame)
             frame.healpred:Hide();
         end
         -- auras
-        if frame.alert and next(frame.alert) then
+        if next(frame.alert) then
             -- major
             if frame.overlay.color ~= majorcolor then
                 frame.overlay:SetVertexColor(unpack(majorcolor));
                 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;
+                if not frame.overlay:IsShown() then frame.overlay:Show() end
+            end
         elseif UnitIsCharmed(unit) and frame.unit == frame.displayed then
             -- charmed
             if frame.overlay.color ~= charmcolor then