mirror of
https://github.com/parnic/ice-hud.git
synced 2025-06-16 06:40:13 -05:00
- Fixed an error popping up when you had a target and zoned into an instance as a Monk.
This commit is contained in:
@ -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
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user