diff --git a/modules/HolyPower.lua b/modules/HolyPower.lua index 0231e46..dd7defa 100644 --- a/modules/HolyPower.lua +++ b/modules/HolyPower.lua @@ -7,20 +7,33 @@ function HolyPower.prototype:init() self:SetDefaultColor("HolyPowerNumeric", 218, 231, 31) -- pulled from PaladinPowerBar.xml in Blizzard's UI source - self.runeCoords = - { - {0.00390625, 0.14453125, 0.78906250, 0.96093750}, - {0.15234375, 0.27343750, 0.78906250, 0.92187500}, - {0.28125000, 0.38671875, 0.64843750, 0.81250000}, - {0.28125000, 0.38671875, 0.82812500, 0.92187500}, - {0.39453125, 0.49609375, 0.64843750, 0.74218750}, - } + if IceHUD.WowVer >= 50000 then + self.runeCoords = + { + {0.00390625, 0.14453125, 0.78906250, 0.96093750}, + {0.15234375, 0.27343750, 0.78906250, 0.92187500}, + {0.28125000, 0.38671875, 0.64843750, 0.81250000}, + {0.28125000, 0.38671875, 0.82812500, 0.92187500}, + {0.39453125, 0.49609375, 0.64843750, 0.74218750}, + } + else + self.runeCoords = + { + {0.00390625, 0.14453125, 0.64843750, 0.82031250}, + {0.00390625, 0.12500000, 0.83593750, 0.96875000}, + {0.15234375, 0.25781250, 0.64843750, 0.81250000}, + } + end self.numericColor = "HolyPowerNumeric" self.unitPower = SPELL_POWER_HOLY_POWER self.minLevel = PALADINPOWERBAR_SHOW_LEVEL self.bTreatEmptyAsFull = true self.unit = "player" - self.numConsideredFull = HOLY_POWER_FULL + if IceHUD.WowVer >= 50000 then + self.numConsideredFull = HOLY_POWER_FULL + else + self.numConsideredFull = 3 + end end function HolyPower.prototype:GetOptions()