local dispelcolor = addon.Colors.OverlayColorDispel;
local charmcolor = addon.Colors.OverlayColorCharm;
local majorcolor = addon.Colors.OverlayColorAlert;
+local healcolor = addon.Colors.OverlayColorHeal;
local function updateAuras()
-- TODO
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