local UnitLevel, UnitClassification = UnitLevel, UnitClassification;
local RAID_CLASS_COLORS = RAID_CLASS_COLORS;
+local updateAuraFrames = OmaUFAuras.UpdateAuras;
+
local Settings = OmaUFSettings;
local baseColor = Settings.BaseColor;
local overlayColorDispel = Settings.OverlayColorDispel;
end
local function updateAuras(frame, unit)
+ updateAuraFrames(frame, unit);
if UnitIsFriend("player", unit) and UnitDebuff(unit, 1, "RAID") ~= nil then
-- something dispellable
if frame.overlay.color ~= overlayColorDispel then
frame.overlay.color = overlayColorDispel;
end
-- don't overlay charmed when in vehicle
- elseif UnitIsCharmed(unit) and unit == frame.unit then
+ elseif UnitIsCharmed(unit) and not frame.inVehicle then
if frame.overlay.color ~= overlayColorCharm then
frame.overlay:SetVertexColor(unpack(overlayColorCharm));
frame.overlay:Show();