Quantcast

Remove broken and unused EffectiveMana() script condition.

Johnny C. Lam [10-19-13 - 07:53]
Remove broken and unused EffectiveMana() script condition.

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1073 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
OvaleCondition.lua
diff --git a/OvaleCondition.lua b/OvaleCondition.lua
index 0fe1b24..a6d856c 100644
--- a/OvaleCondition.lua
+++ b/OvaleCondition.lua
@@ -1607,15 +1607,6 @@ OvaleCondition.conditions.eclipsedir = function(condition)
 	return Compare(OvaleState:GetEclipseDir(), comparator, limit)
 end

-	-- Get the effective mana (e.g. if spell cost is divided by two, will returns the mana multiplied by two)
-	-- TODO: not working
-	-- returns: bool or number
-OvaleCondition.conditions.effectivemana = function(condition)
-	local comparator, limit = condition[1], condition[2]
-	local value, origin, rate = OvaleState.state.mana, OvaleState.currentTime, OvaleState.powerRate.mana
-	return TestValue(comparator, limit, value, origin, rate)
-end
-
 --- Get the number of hostile enemies on the battlefield.
 -- @name Enemies
 -- @paramsig number or boolean