Quantcast

forgot a change in 4.04

Steven Jackson [07-05-14 - 22:51]
forgot a change in 4.04
Filename
Interface/AddOns/SVUI/packages/unit/common/auras.lua
diff --git a/Interface/AddOns/SVUI/packages/unit/common/auras.lua b/Interface/AddOns/SVUI/packages/unit/common/auras.lua
index c66dd0f..f05dbd6 100644
--- a/Interface/AddOns/SVUI/packages/unit/common/auras.lua
+++ b/Interface/AddOns/SVUI/packages/unit/common/auras.lua
@@ -310,9 +310,9 @@ end
 function MOD:AuraFilter(unit, icon, name, _, _, _, dtype, duration, _, caster, isStealable, shouldConsolidate, spellID, canApplyAura, isBossAura)
 	if spellID == 65148 then return false end
 	local isPlayer,friendly;
+	local db = self:GetParent().db;
 	local auraType = self.type;
-	local db = MOD.db[unit][auraType];
-	if not db then return true end
+	if not db or not auraType or not db[auraType] then return true end;
 	local filtered=true;
 	local allowed=true;
 	local pass=false;