From bbc1bff51a7946490366abedee9db6bd29a82028 Mon Sep 17 00:00:00 2001 From: Parnic Date: Tue, 27 Nov 2012 22:51:16 +0000 Subject: [PATCH] - TOC bump for 5.1 - Changed the LIGHT_FORCE constant to CHI because changing constants in shipped code is such an awesome idea. --- IceHUD.toc | 2 +- modules/HarmonyPower.lua | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/IceHUD.toc b/IceHUD.toc index b129f1c..1eae5c5 100644 --- a/IceHUD.toc +++ b/IceHUD.toc @@ -1,4 +1,4 @@ -## Interface: 50001 +## Interface: 50100 ## Author: Parnic, originally created by Iceroth ## Name: IceHUD ## Title: IceHUD |cff7fff7f-Ace3-|r diff --git a/modules/HarmonyPower.lua b/modules/HarmonyPower.lua index 23b4eb8..1995f2e 100644 --- a/modules/HarmonyPower.lua +++ b/modules/HarmonyPower.lua @@ -17,7 +17,11 @@ function HarmonyPower.prototype:init() } self.numRunes = 4 self.numericColor = "HarmonyPowerNumeric" - self.unitPower = SPELL_POWER_LIGHT_FORCE + if IceHUD.WowVer >= 50100 then + self.unitPower = SPELL_POWER_CHI + else + self.unitPower = SPELL_POWER_LIGHT_FORCE + end self.minLevel = 0 self.bTreatEmptyAsFull = true self.unit = "player" @@ -31,7 +35,7 @@ function HarmonyPower.prototype:Enable(core) end function HarmonyPower.prototype:UpdateRunePower(event, arg1, arg2) - if event == "UNIT_POWER_FREQUENT" and (arg1 ~= self.unit or (arg2 ~= "LIGHT_FORCE" and arg2 ~= "DARK_FORCE")) then + if event == "UNIT_POWER_FREQUENT" and (arg1 ~= self.unit or (arg2 ~= "CHI" and arg2 ~= "LIGHT_FORCE" and arg2 ~= "DARK_FORCE")) then return end