mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
Gracefully consider filterTable nil case
This commit is contained in:
@@ -26,13 +26,15 @@ local function GetDebuffType(unit, filter, filterTable)
|
|||||||
local name, _, texture, _, debufftype = UnitAura(unit, i, "HARMFUL")
|
local name, _, texture, _, debufftype = UnitAura(unit, i, "HARMFUL")
|
||||||
if not texture then break end
|
if not texture then break end
|
||||||
|
|
||||||
local filterSpell = filterTable[name]
|
if(filterTable) then
|
||||||
|
local filterSpell = filterTable[name]
|
||||||
if(filterTable and filterSpell and filterSpell.enable) then
|
if(filterSpell and filterSpell.enable) then
|
||||||
return debufftype, texture, true, filterSpell.style, filterSpell.color
|
return debufftype, texture, true, filterSpell.style, filterSpell.color
|
||||||
elseif(debufftype and (not filter or (filter and dispellist[debufftype]))) then
|
elseif(debufftype and (not filter or (filter and dispellist[debufftype]))) then
|
||||||
return debufftype, texture;
|
return debufftype, texture;
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
i = i + 1
|
i = i + 1
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user