mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 14:50:13 -05:00
Another little tweak to energy ticker
This commit is contained in:
@ -144,12 +144,13 @@ function PlayerMana.prototype:UpdateEnergy(unit)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
if (not (self.previousEnergy) or (self.previousEnergy <= UnitMana(self.unit))) then
|
if (not (self.previousEnergy) or (self.previousEnergy <= UnitMana(self.unit))) then
|
||||||
self.previousEnergy = UnitMana(self.unit)
|
|
||||||
self.tickStart = GetTime()
|
self.tickStart = GetTime()
|
||||||
self.tickerFrame:Show()
|
self.tickerFrame:Show()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.previousEnergy = UnitMana(self.unit)
|
||||||
self:Update(unit)
|
self:Update(unit)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user