c6843f3 - Refactor updateIndicators to get auras when they're applied
[wowui.git] / OmaRF / UpdateAuras.lua
index cf5fccf..e6d82f0 100644 (file)
@@ -2,13 +2,13 @@ local normalBarColor = OmaRF.normalBarColor;
 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
@@ -18,7 +18,6 @@ hooksecurefunc("CompactUnitFrame_UpdateAuras", function(frame)
             frame.optionTable.healthBarColorOverride = normalBarColor;
             frame.background:SetColorTexture(unpack(normalBackColor));
         end
-        -- update color
         CompactUnitFrame_UpdateHealthColor(frame);
     end
 end);