mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- more minor cleanups before tagging a new release version
This commit is contained in:
@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user