-local UnitIsConnected = UnitIsConnected;
-local UnitIsDeadOrGhost = UnitIsDeadOrGhost;
-local CompactRaidFrameContainer_ApplyToFrames = CompactRaidFrameContainer_ApplyToFrames;
-local format = string.format;
-local unpack = unpack;
-local floor = floor;
-local ceil = ceil;
-
--- update current auras
-hooksecurefunc("CompactUnitFrame_UpdateAuras", function(frame)
- local frameName = frame:GetName();
- if f[frameName] then
- for _, ind in pairs(f[frameName]) do ind.expires = nil end
- for _, ind in ipairs(majorFrames[frameName]) do ind.expires = nil end
-
- local name, icon, count, expires, caster, id;
- local unit = frame.displayedUnit;
- local majorI = 1;
- for _, filter in ipairs(auraFilters) do
- local i = 1;
- while true do
- name, _, icon, count, _, _, expires, caster, _, _, id = UnitAura(unit, i, filter);
- if not id then break end
- local pos = watchedAuras[id] or watchedAuras[name];
- if pos then
- local ind = f[frameName][pos];
- local config = OmaRF.db.profile.indicators[pos];
- if not config.mine or UnitIsPlayer(caster) then
- if config.useDefaultIcon then
- ind.icon:SetTexture(DEFAULT_ICON);
- else
- ind.icon:SetTexture(icon);
- end
- ind.expires = expires;
- end
- end
-
- if (majorAuras[id] or majorAuras[name]) and majorI <= majorMax then
- local ind = majorFrames[frameName][majorI];
- ind.icon:SetTexture(icon);
- ind.expires = expires;
- if count > 1 then
- ind.stackText:SetText(count);
- end
- majorI = majorI + 1;
- end
- i = i + 1;
- end
- end
- end
-end);
-
-local function configureIndicators(frame, name)
- local frameName = name or frame:GetName();
- if not f[frameName] then return end
-
- local config = OmaRF.db.profile.indicators;
- for pos, ind in pairs(f[frameName]) do
- ind.text:SetFont(STANDARD_TEXT_FONT, config[pos]["textSize"]);
- ind.text:SetTextColor(unpack(config[pos]["textColor"]));
- ind.icon:SetWidth(config[pos]["iconSize"]);
- ind.icon:SetHeight(config[pos]["iconSize"]);
- ind.icon:SetTexture(DEFAULT_ICON);
- ind.icon:SetVertexColor(unpack(config[pos]["iconColor"]));
- end
-
- config = OmaRF.db.profile.majorAuras;
- for i, ind in ipairs(majorFrames[frameName]) do
- if i == 1 then
- ind.icon:ClearAllPoints();
- ind.icon:SetPoint("CENTER", frame, "CENTER", -config.iconSize, 0);
- end
- ind.icon:SetWidth(config.iconSize);
- ind.icon:SetHeight(config.iconSize);
- ind.expireText:SetFont(STANDARD_TEXT_FONT, config["textSize"], "OUTLINE");
- ind.stackText:SetFont(STANDARD_TEXT_FONT, config["textSize"], "OUTLINE");
- end
-end
+local UnitIsDeadOrGhost, UnitIsConnected = UnitIsDeadOrGhost, UnitIsConnected;
+local CTimerAfter = C_Timer.After;
+
+local watchedAuras = {
+ [53563] = "TOPRIGHT",
+ [156910] = "TOPRIGHT",
+ [200025] = "TOPRIGHT",
+ [200654] = "BOTTOMLEFT",
+};
+local majorAuras = {
+ ["Psychic Assault"] = true,
+ ["Everburning Flames"] = true,
+ ["Corrupt"] = true,
+ ["Sleep Canister"] = true,
+ ["Misery"] = true,
+ ["Necrotic Embrace"] = true,
+ ["Fulminating Pulse"] = true,
+ ["Chilled Blood"] = true,
+ ["Soulblight"] = true,
+ ["Soulburst"] = true,
+ ["Soulbomb"] = true,
+ ["Aqua Bomb"] = true,
+};