Quantcast

Fix to TargetInRange

Sidoine De Wispelaere [10-17-10 - 20:35]
Fix to TargetInRange

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@306 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Condition.lua
diff --git a/Condition.lua b/Condition.lua
index 8c06829..8684f28 100644
--- a/Condition.lua
+++ b/Condition.lua
@@ -797,7 +797,8 @@ Ovale.conditions=
 		return start, addTime(ending, -tempsMin)
 	end,
 	TargetInRange = function(condition)
-		return testbool(IsSpellInRange(condition[1],getTarget(condition.target))==1,condition[2])
+		local spellName = GetSpellInfo(condition[1])
+		return testbool(IsSpellInRange(spellName,getTarget(condition.target))==1,condition[2])
 	end,
 	TargetIsCasting = function(condition)
 		return testbool(UnitCastingInfo(getTarget(condition.target)), condition[1])