Commit 2b557c78 authored by Blazeflack's avatar Blazeflack
Browse files

Fixed error when importing profile which used a non-existing filter

This is because filters are never part of the profile you import, so I will have to make sure this specific setting is ignored from the profile export too.
parent ec0168c6
......@@ -940,11 +940,13 @@ function UF:RegisterRaidDebuffIndicator()
local instance = E.global.unitframe.raidDebuffIndicator.instanceFilter
local other = E.global.unitframe.raidDebuffIndicator.otherFilter
instanceSpells = ((E.global.unitframe.aurafilters[instance] and E.global.unitframe.aurafilters[instance].spells) or E.global.unitframe.aurafilters.RaidDebuffs.spells)
otherSpells = ((E.global.unitframe.aurafilters[other] and E.global.unitframe.aurafilters[other].spells) or E.global.unitframe.aurafilters.CCDebuffs.spells)
if instanceType == "party" or instanceType == "raid" then
ORD:RegisterDebuffs(E.global.unitframe.aurafilters[instance].spells)
ORD:RegisterDebuffs(instanceSpells)
else
ORD:RegisterDebuffs(E.global.unitframe.aurafilters[other].spells)
ORD:RegisterDebuffs(otherSpells)
end
end
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment