local dispelBarColor = OmaRF.dispelBarColor;
local normalBackColor = OmaRF.normalBackColor;
local dispelBackColor = OmaRF.dispelBackColor;
+
local UnitDebuff = UnitDebuff;
local CompactUnitFrame_UpdateHealthColor = CompactUnitFrame_UpdateHealthColor;
local unpack = unpack;
hooksecurefunc("CompactUnitFrame_UpdateAuras", function(frame)
- -- allowClassColorsForNPCs only in regular raid frames,
- -- match only to them
+ -- allowClassColorsForNPCs only in regular raid frames
if frame.optionTable.allowClassColorsForNPCs ~= nil then
-- try to find dispellable debuff
if UnitDebuff(frame.displayedUnit, 1, "RAID") ~= nil then
frame.optionTable.healthBarColorOverride = normalBarColor;
frame.background:SetColorTexture(unpack(normalBackColor));
end
- -- update color
CompactUnitFrame_UpdateHealthColor(frame);
end
end);