mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- Added guards against nil auraName in CustomCount causing an error.
This commit is contained in:
@ -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
|
||||||
|
|
||||||
|
@ -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)
|
||||||
|
Reference in New Issue
Block a user