- switched UnitMana* calls to UnitPower* calls as that seems to be the replacement Blizzard is using in cataclysm

This commit is contained in:
Parnic
2010-07-02 16:23:35 +00:00
parent 242bc75ea1
commit f1ce0700e3
2 changed files with 4 additions and 4 deletions

View File

@ -304,11 +304,11 @@ function PlayerMana.prototype:UpdateEnergy(unit)
return
end
self.previousEnergy = UnitMana(self.unit)
self.previousEnergy = UnitPower(self.unit)
self:Update(unit)
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.tickStart = GetTime()
self.tickerFrame:Show()