Quantcast

Probably a fix for auras

Darth Predator [04-15-17 - 14:34]
Probably a fix for auras
Filename
ElvUI_SLE/modules/unitframes/unitframes.lua
diff --git a/ElvUI_SLE/modules/unitframes/unitframes.lua b/ElvUI_SLE/modules/unitframes/unitframes.lua
index ea047c4..d2488b8 100644
--- a/ElvUI_SLE/modules/unitframes/unitframes.lua
+++ b/ElvUI_SLE/modules/unitframes/unitframes.lua
@@ -180,7 +180,7 @@ function UF:UpdateAuraTimer(elapsed)
 	local timervalue, formatid
 	local unitID = self:GetParent():GetParent().unitframeType
 	local auraType = self:GetParent().type
-	if unitID and E.db.sle.unitframes.unit[unitID].auras then
+	if unitID and E.db.sle.unitframes.unit[unitID] and E.db.sle.unitframes.unit[unitID].auras then
 		timervalue, formatid, self.nextupdate = E:GetTimeInfo(self.expiration, E.db.sle.unitframes.unit[unitID].auras[auraType].threshold)
 	else
 		timervalue, formatid, self.nextupdate = E:GetTimeInfo(self.expiration, 4)