Quantcast

Rename function for clarity.

Johnny C. Lam [05-08-14 - 17:26]
Rename function for clarity.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1402 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleRunes.lua
diff --git a/OvaleRunes.lua b/OvaleRunes.lua
index 8f48117..47290c3 100644
--- a/OvaleRunes.lua
+++ b/OvaleRunes.lua
@@ -380,7 +380,7 @@ statePrototype.GetRunesCooldown = nil
 do
 	-- If the rune is active, then return the remaining active runes count requirement.
 	-- Also return the time of the next rune becoming active.
-	local function MatchRune(rune, count, endCooldown)
+	local function MatchingRune(rune, count, endCooldown)
 		if count > 0 then
 			count = count - 1
 			if rune.endCooldown > endCooldown then
@@ -414,7 +414,7 @@ do
 		for slot, rune in ipairs(state.rune) do
 			if rune.type ~= DEATH_RUNE then
 				local runeType = rune.type
-				local count, endCooldown = MatchRune(rune, runeCount[runeType], runeEndCooldown[runeType])
+				local count, endCooldown = MatchingRune(rune, runeCount[runeType], runeEndCooldown[runeType])
 				runeCount[runeType] = count
 				runeEndCooldown[runeType] = endCooldown
 			end
@@ -424,7 +424,7 @@ do
 			for slot, rune in ipairs(state.rune) do
 				if rune.type == DEATH_RUNE then
 					local runeType = rune.slotType
-					local count, endCooldown = MatchRune(rune, runeCount[runeType], runeEndCooldown[runeType])
+					local count, endCooldown = MatchingRune(rune, runeCount[runeType], runeEndCooldown[runeType])
 					runeCount[runeType] = count
 					runeEndCooldown[runeType] = endCooldown
 				end
@@ -442,7 +442,7 @@ do
 			for _, slot in ipairs(DEATH_RUNE_PRIORITY) do
 				local rune = state.rune[slot]
 				local runeType = DEATH_RUNE
-				local count, endCooldown = MatchRune(rune, remainingCount, runeEndCooldown[runeType])
+				local count, endCooldown = MatchingRune(rune, remainingCount, runeEndCooldown[runeType])
 				remainingCount = count
 				runeEndCooldown[runeType] = endCooldown
 			end