fdbd89d - Refactor OmaUF for more flexible frames
[wowui.git] / OmaUF / Auras.lua
index 95ef2c6..499bd77 100644 (file)
@@ -77,7 +77,6 @@ end
 
 function M.UpdateAuras(frame, unit)
     local auras = frame.auras;
 
 function M.UpdateAuras(frame, unit)
     local auras = frame.auras;
-    if not auras then return end
     for _, aura in ipairs(auras) do
         if not aura:IsShown() then break end
         aura:Hide();
     for _, aura in ipairs(auras) do
         if not aura:IsShown() then break end
         aura:Hide();
@@ -89,6 +88,7 @@ function M.UpdateAuras(frame, unit)
         while true do
             _, _, icon, count, _, duration, expires, caster, _, _, id = UnitAura(unit, i, filter);
             if not id or not auras[pos] then break end
         while true do
             _, _, icon, count, _, duration, expires, caster, _, _, id = UnitAura(unit, i, filter);
             if not id or not auras[pos] then break end
+            -- aura filter self-applied, player-applied, list of important auras TODO
             local aura = auras[pos];
             aura.icon:SetTexture(icon);
             aura.index = i;
             local aura = auras[pos];
             aura.icon:SetTexture(icon);
             aura.index = i;