- 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
function IceHUD:GetAuraCount(auraType, unit, ability, onlyMine, matchByName)
if not unit then
if not unit or not ability then
return 0
end