- TOC bump for 5.1

- Changed the LIGHT_FORCE constant to CHI because changing constants in shipped code is such an awesome idea.
This commit is contained in:
Parnic
2012-11-27 22:51:16 +00:00
parent 2c3b1e57bd
commit bbc1bff51a
2 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,4 @@
## Interface: 50001 ## Interface: 50100
## Author: Parnic, originally created by Iceroth ## Author: Parnic, originally created by Iceroth
## Name: IceHUD ## Name: IceHUD
## Title: IceHUD |cff7fff7f-Ace3-|r ## Title: IceHUD |cff7fff7f-Ace3-|r

View File

@ -17,7 +17,11 @@ function HarmonyPower.prototype:init()
} }
self.numRunes = 4 self.numRunes = 4
self.numericColor = "HarmonyPowerNumeric" self.numericColor = "HarmonyPowerNumeric"
if IceHUD.WowVer >= 50100 then
self.unitPower = SPELL_POWER_CHI
else
self.unitPower = SPELL_POWER_LIGHT_FORCE self.unitPower = SPELL_POWER_LIGHT_FORCE
end
self.minLevel = 0 self.minLevel = 0
self.bTreatEmptyAsFull = true self.bTreatEmptyAsFull = true
self.unit = "player" self.unit = "player"
@ -31,7 +35,7 @@ function HarmonyPower.prototype:Enable(core)
end end
function HarmonyPower.prototype:UpdateRunePower(event, arg1, arg2) 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 return
end end