Quantcast

fix for RelativeLevel function

Sidoine De Wispelaere [02-05-11 - 20:07]
fix for RelativeLevel function

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@354 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Condition.lua
diff --git a/Condition.lua b/Condition.lua
index 7db56c5..67b7b8e 100644
--- a/Condition.lua
+++ b/Condition.lua
@@ -815,7 +815,7 @@ Ovale.conditions=
 	RelativeLevel = function(condition)
 		local difference
 		local target = getTarget(condition.target)
-		if (UnitLeveltarget) == -1) then
+		if UnitLeveltarget(target) == -1 then
 			difference = 3
 		else
 			difference = UnitLevel(target) - UnitLevel("player")