- updated all UnitPower* code to use the SPELL_POWER_* constants instead of hardcoding numbers...mostly just a readability change

This commit is contained in:
Parnic
2010-09-10 01:50:43 +00:00
parent 22fd66d756
commit 8d4686f10c
7 changed files with 27 additions and 55 deletions

View File

@ -25,7 +25,6 @@ local runeCoords =
{0.15234375, 0.25781250, 0.64843750, 0.81250000},
}
local HOLY_POWER_INDEX = 9
local runeShineFadeSpeed = 0.4
-- 'Public' methods -----------------------------------------------------------
@ -247,7 +246,7 @@ function HolyPower.prototype:Enable(core)
end
function HolyPower.prototype:UpdateRunePower()
local numReady = UnitPower("player", HOLY_POWER_INDEX)
local numReady = UnitPower("player", SPELL_POWER_HOLY_POWER)
if self.moduleSettings.runeMode == "Graphical" then
for i=1, self.numRunes do