From 74148a6b9877063045e8a7ca3d7e153eec4d7f09 Mon Sep 17 00:00:00 2001 From: Parnic Date: Sun, 30 Sep 2012 02:13:53 +0000 Subject: [PATCH] - Fixed an error popping up when you had a target and zoned into an instance as a Monk. --- modules/HarmonyPower.lua | 4 ++++ modules/HolyPower.lua | 3 +++ 2 files changed, 7 insertions(+) diff --git a/modules/HarmonyPower.lua b/modules/HarmonyPower.lua index efeab46..23b4eb8 100644 --- a/modules/HarmonyPower.lua +++ b/modules/HarmonyPower.lua @@ -36,6 +36,10 @@ function HarmonyPower.prototype:UpdateRunePower(event, arg1, arg2) end 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 numRunes = self.fakeNumRunes diff --git a/modules/HolyPower.lua b/modules/HolyPower.lua index be63328..ecb72d7 100644 --- a/modules/HolyPower.lua +++ b/modules/HolyPower.lua @@ -88,6 +88,9 @@ end function HolyPower.prototype:UpdateRunePower(event) local numRunes = UnitPowerMax(self.unit, self.unitPower) + if numRunes == 0 then + return + end if self.fakeNumRunes ~= nil and self.fakeNumRunes > 0 then numRunes = self.fakeNumRunes