From 9a3b8fb0bdaa10d44662a52c3c148b7fe6215014 Mon Sep 17 00:00:00 2001 From: Parnic Date: Thu, 16 Oct 2014 17:34:55 -0500 Subject: [PATCH] - Added guards against nil auraName in CustomCount causing an error. --- IceHUD.lua | 2 +- modules/CustomCount.lua | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/IceHUD.lua b/IceHUD.lua index b6d102c..33164a3 100644 --- a/IceHUD.lua +++ b/IceHUD.lua @@ -372,7 +372,7 @@ function IceHUD:GetDebuffCount(unit, ability, onlyMine, matchByName) end function IceHUD:GetAuraCount(auraType, unit, ability, onlyMine, matchByName) - if not unit then + if not unit or not ability then return 0 end diff --git a/modules/CustomCount.lua b/modules/CustomCount.lua index 8fa3b7a..42fc1ca 100644 --- a/modules/CustomCount.lua +++ b/modules/CustomCount.lua @@ -549,6 +549,10 @@ end function IceCustomCount.prototype:UpdateCustomCount() + if not self.moduleSettings.auraName then + return + end + local points if IceHUD.IceCore:IsInConfigMode() then points = tonumber(self.moduleSettings.maxCount)