X-Git-Url: https://www.aleksib.fi/git/wowui.git/blobdiff_plain/521041f750bcf5d25bbf7fcab475e47665cb748b..3f0366d356d49ec904023e68fae0ce2488bdfbc0:/kehys/updater.lua?ds=sidebyside diff --git a/kehys/updater.lua b/kehys/updater.lua index f881ff7..f51d200 100644 --- a/kehys/updater.lua +++ b/kehys/updater.lua @@ -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