From c2ba2cdad0de4da5dc03856d76d5ac51136f2dec Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Sat, 19 Oct 2013 07:53:29 +0000 Subject: [PATCH] Rename some variables for code consistency. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1072 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleCondition.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/OvaleCondition.lua b/OvaleCondition.lua index 9f05acd..0fe1b24 100644 --- a/OvaleCondition.lua +++ b/OvaleCondition.lua @@ -3845,10 +3845,10 @@ OvaleCondition.conditions.timetolifepercent = OvaleCondition.conditions.timetohe OvaleCondition.conditions.timetopowerfor = function(condition) local comparator, limit = condition[2], condition[3] - local cost, _, powerType = select(4, API_GetSpellInfo(condition[1])) - local power = OvalePower.POWER_TYPE[powerType] - local currentPower = OvaleState.state[power] - local powerRate = OvaleState.powerRate[power] + local cost, _, powerToken = select(4, API_GetSpellInfo(condition[1])) + local powerType = OvalePower.POWER_TYPE[powerToken] + local currentPower = OvaleState.state[powerType] + local powerRate = OvaleState.powerRate[powerType] cost = cost or 0 if currentPower < cost then if powerRate > 0 then -- 1.7.9.5