diff --git a/modules/CustomHealth.lua b/modules/CustomHealth.lua index 09faf4b..eda2061 100644 --- a/modules/CustomHealth.lua +++ b/modules/CustomHealth.lua @@ -144,7 +144,7 @@ function IceCustomHealth.prototype:Update(unit) if (self.moduleSettings.scaleHealthColor) then self.color = "ScaledHealthColor" - elseif self.moduleSettings.lowThresholdColor and self.healthPercentage <= self.moduleSettings.lowThreshold then + elseif self.moduleSettings.lowThresholdColor and self.healthPercentage and self.healthPercentage <= self.moduleSettings.lowThreshold then self.color = "ScaledHealthColor" end diff --git a/modules/TargetOfTargetHealth.lua b/modules/TargetOfTargetHealth.lua index a4de879..2c1cdde 100644 --- a/modules/TargetOfTargetHealth.lua +++ b/modules/TargetOfTargetHealth.lua @@ -136,7 +136,7 @@ function TargetTargetHealth.prototype:Update(unit) if (self.moduleSettings.scaleHealthColor) then self.color = "ScaledHealthColor" - elseif self.moduleSettings.lowThresholdColor and self.healthPercentage <= self.moduleSettings.lowThreshold then + elseif self.moduleSettings.lowThresholdColor and self.healthPercentage and self.healthPercentage <= self.moduleSettings.lowThreshold then self.color = "ScaledHealthColor" end diff --git a/modules/TargetOfTargetMana.lua b/modules/TargetOfTargetMana.lua index 89bbf2f..9b8a6cd 100644 --- a/modules/TargetOfTargetMana.lua +++ b/modules/TargetOfTargetMana.lua @@ -83,7 +83,7 @@ function TargetTargetMana.prototype:Update(unit) if (self.moduleSettings.scaleManaColor) then self.color = "ScaledManaColor" - elseif self.moduleSettings.lowThresholdColor and self.manaPercentage <= self.moduleSettings.lowThreshold then + elseif self.moduleSettings.lowThresholdColor and self.manaPercentage and self.manaPercentage <= self.moduleSettings.lowThreshold then self.color = "ScaledManaColor" end