git
/
wowui.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
c82178b - Initial BfA compatibility
[wowui.git]
/
OmaRF
/
Events.lua
diff --git
a/OmaRF/Events.lua
b/OmaRF/Events.lua
index
fa6b950
..
2ffe946
100644
(file)
--- a/
OmaRF/Events.lua
+++ b/
OmaRF/Events.lua
@@
-181,11
+181,16
@@
M.UpdateHealAbsorb = updateHealAbsorb;
local function updateAuras(frame, unit)
updateIndicatorAuras(frame, unit); -- this is throttled
local function updateAuras(frame, unit)
updateIndicatorAuras(frame, unit); -- this is throttled
- if updateMajorAuras(frame, unit) then
- if frame.overlay.color ~= overlayColorAlert then
+ local barColor = updateMajorAuras(frame, unit);
+ if barColor then
+ if barColor == true and frame.overlay.color ~= overlayColorAlert then
frame.overlay:SetVertexColor(unpack(overlayColorAlert));
frame.overlay.color = overlayColorAlert;
frame.overlay:Show();
frame.overlay:SetVertexColor(unpack(overlayColorAlert));
frame.overlay.color = overlayColorAlert;
frame.overlay:Show();
+ elseif barColor ~= true and frame.overlay.color ~= barColor then
+ frame.overlay:SetVertexColor(unpack(barColor));
+ frame.overlay.color = barColor;
+ frame.overlay:Show();
end
elseif UnitDebuff(unit, 1, "RAID") ~= nil then
-- something dispellable
end
elseif UnitDebuff(unit, 1, "RAID") ~= nil then
-- something dispellable