- more minor cleanups before tagging a new release version

This commit is contained in:
Parnic
2009-04-19 00:49:33 +00:00
parent 9a8d5317c9
commit 0a0a816701
9 changed files with 13 additions and 13 deletions

View File

@ -203,11 +203,11 @@ function IceUnitBar.prototype:Update()
self.health = UnitHealth(self.unit)
self.maxHealth = UnitHealthMax(self.unit)
self.healthPercentage = self.maxHealth > 0 and (self.health/self.maxHealth) or 0
self.healthPercentage = self.maxHealth ~= 0 and (self.health/self.maxHealth) or 0
self.mana = UnitMana(self.unit)
self.maxMana = UnitManaMax(self.unit)
self.manaPercentage = self.maxMana > 0 and (self.mana/self.maxMana) or 0
self.manaPercentage = self.maxMana ~= 0 and (self.mana/self.maxMana) or 0
_, self.unitClass = UnitClass(self.unit)