Quantcast

added Speed function

Sidoine De Wispelaere [07-04-10 - 10:25]
added Speed function

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@259 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Condition.lua
diff --git a/Condition.lua b/Condition.lua
index da44aa7..050c089 100644
--- a/Condition.lua
+++ b/Condition.lua
@@ -653,6 +653,9 @@ Ovale.conditions=
 			return maxCD
 		end
 	end,
+	Speed = function(condition)
+		return compare(GetUnitSpeed("player")*100/7, condition[1], condition[2])
+	end,
 	-- Test if the player is in a given stance
 	-- 1 : the stance
 	Stance = function(condition)