- configureIndicators(frame);
-end
-
--- Get all unit auras TODO change to event driven, only remaining updating with timer
-local function getAuras(unit)
- local unitAuras = {};
- local auraName, icon, count, expires, caster, debuffType, spellId;
- local filter;
-
- for _, filter in ipairs(auraFilters) do
- local i = 1;
- while true do
- auraName, _, icon, count, debuffType, _, expires, caster, _, _, spellId = UnitAura(unit, i, filter);
- if not spellId then break end
- if watchedAuras[auraName] or watchedAuras[spellId] or watchedAuras[debuffType] then
- local aura = {};
- aura.auraName = auraName;
- aura.spellId = spellId;
- aura.count = count;
- aura.expires = expires;
- aura.mine = UnitIsUnit(caster, "player");
- aura.icon = icon;
- aura.debuffType = debuffType;
- table.insert(unitAuras, aura);
- end
- i = i + 1;
- end
- end
- return unitAuras;