Quantcast

Fix switched parameters that broke TimeSincePreviousSpell().

Johnny C. Lam [01-01-15 - 13:05]
Fix switched parameters that broke TimeSincePreviousSpell().

Fixes ticket 503 by @apathyinc.
Filename
conditions.lua
diff --git a/conditions.lua b/conditions.lua
index 62e8578..b1b116a 100644
--- a/conditions.lua
+++ b/conditions.lua
@@ -5276,7 +5276,7 @@ do
 	local function TimeSincePreviousSpell(condition, state)
 		local spellId, comparator, limit = condition[1], condition[2], condition[3]
 		local t = state:TimeOfLastCast(spellId)
-		return TestValue(0, INFINITY, t, 0, 1, comparator, limit)
+		return TestValue(0, INFINITY, 0, t, 1, comparator, limit)
 	end

 	OvaleCondition:RegisterCondition("timesincepreviousspell", false, TimeSincePreviousSpell)