mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- switched UnitMana* calls to UnitPower* calls as that seems to be the replacement Blizzard is using in cataclysm
This commit is contained in:
@ -202,8 +202,8 @@ function IceUnitBar.prototype:Update()
|
|||||||
self.maxHealth = UnitHealthMax(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.mana = UnitPower(self.unit)
|
||||||
self.maxMana = UnitManaMax(self.unit)
|
self.maxMana = UnitPowerMax(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)
|
_, self.unitClass = UnitClass(self.unit)
|
||||||
|
@ -304,11 +304,11 @@ function PlayerMana.prototype:UpdateEnergy(unit)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
self.previousEnergy = UnitMana(self.unit)
|
self.previousEnergy = UnitPower(self.unit)
|
||||||
self:Update(unit)
|
self:Update(unit)
|
||||||
|
|
||||||
if self:ShouldUseTicker() and
|
if self:ShouldUseTicker() and
|
||||||
((not (self.previousEnergy) or (self.previousEnergy <= UnitMana(self.unit))) and
|
((not (self.previousEnergy) or (self.previousEnergy <= UnitPower(self.unit))) and
|
||||||
(self.moduleSettings.tickerEnabled) and self.manaType == 3) then
|
(self.moduleSettings.tickerEnabled) and self.manaType == 3) then
|
||||||
self.tickStart = GetTime()
|
self.tickStart = GetTime()
|
||||||
self.tickerFrame:Show()
|
self.tickerFrame:Show()
|
||||||
|
Reference in New Issue
Block a user