- Added guards against nil auraName in CustomCount causing an error.

This commit is contained in:
Parnic
2014-10-16 17:34:55 -05:00
parent 980cfd2f8e
commit 9a3b8fb0bd
2 changed files with 5 additions and 1 deletions

View File

@ -372,7 +372,7 @@ function IceHUD:GetDebuffCount(unit, ability, onlyMine, matchByName)
end end
function IceHUD:GetAuraCount(auraType, unit, ability, onlyMine, matchByName) function IceHUD:GetAuraCount(auraType, unit, ability, onlyMine, matchByName)
if not unit then if not unit or not ability then
return 0 return 0
end end

View File

@ -549,6 +549,10 @@ end
function IceCustomCount.prototype:UpdateCustomCount() function IceCustomCount.prototype:UpdateCustomCount()
if not self.moduleSettings.auraName then
return
end
local points local points
if IceHUD.IceCore:IsInConfigMode() then if IceHUD.IceCore:IsInConfigMode() then
points = tonumber(self.moduleSettings.maxCount) points = tonumber(self.moduleSettings.maxCount)