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:
@ -891,7 +891,7 @@ function PlayerHealth.prototype:Update(unit)
|
||||
textColor = "Text"
|
||||
end
|
||||
|
||||
self:UpdateBar(self.health/self.maxHealth, color)
|
||||
self:UpdateBar(self.healthPercentage, color)
|
||||
|
||||
-- sadly, animation uses bar-local variables so we can't use the animation for 2 bar textures on the same bar element
|
||||
if self.moduleSettings.showIncomingHeals and self.healFrame and self.healFrame.bar and incomingHealAmt then
|
||||
|
Reference in New Issue
Block a user