- Fixed an error popping up when you had a target and zoned into an instance as a Monk.

This commit is contained in:
Parnic
2012-09-30 02:13:53 +00:00
parent 1a4cf9a403
commit 74148a6b98
2 changed files with 7 additions and 0 deletions

View File

@ -36,6 +36,10 @@ function HarmonyPower.prototype:UpdateRunePower(event, arg1, arg2)
end end
local numRunes = UnitPowerMax(self.unit, self.unitPower) local numRunes = UnitPowerMax(self.unit, self.unitPower)
-- totally invalid....right?
if numRunes == 0 then
return
end
if self.fakeNumRunes ~= nil and self.fakeNumRunes > 0 then if self.fakeNumRunes ~= nil and self.fakeNumRunes > 0 then
numRunes = self.fakeNumRunes numRunes = self.fakeNumRunes

View File

@ -88,6 +88,9 @@ end
function HolyPower.prototype:UpdateRunePower(event) function HolyPower.prototype:UpdateRunePower(event)
local numRunes = UnitPowerMax(self.unit, self.unitPower) local numRunes = UnitPowerMax(self.unit, self.unitPower)
if numRunes == 0 then
return
end
if self.fakeNumRunes ~= nil and self.fakeNumRunes > 0 then if self.fakeNumRunes ~= nil and self.fakeNumRunes > 0 then
numRunes = self.fakeNumRunes numRunes = self.fakeNumRunes