frame:SetScript("OnUpdate", nil);
end
-function M.UpdateAuraTooltips()
- GameTooltip = _G["GameTooltip"];
-end
-
local function createAura(parent, prev, anchor, name, unit)
local aura = CreateFrame("Frame", name, parent);
aura:SetPoint("TOPLEFT", prev, anchor);
function M.UpdateAuras(frame, unit)
local auras = frame.auras;
- for _, aura in ipairs(auras) do
- if not aura:IsShown() then break end
- aura:Hide();
- end
local icon, count, duration, expires, caster, id;
local pos = 1;
for _, filter in ipairs(auraFilters) do
i = i + 1;
end
end
+
+ while auras[pos] do
+ if not auras[pos]:IsShown() then return end
+ auras[pos]:Hide();
+ pos = pos + 1;
+ end
end