mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- added tons of divide-by-zero protection all over the place
- general cleanup of values passed to UpdateBar
This commit is contained in:
@ -110,7 +110,7 @@ function PetHealth.prototype:Update(unit)
|
||||
end
|
||||
|
||||
if (self.maxHealth > 0) then
|
||||
self:UpdateBar(self.health/self.maxHealth, color)
|
||||
self:UpdateBar(self.healthPercentage, color)
|
||||
end
|
||||
|
||||
if not IceHUD.IceCore:ShouldUseDogTags() then
|
||||
|
Reference in New Issue
Block a user