Quantcast

Bug fix in RelativeLevel

Sidoine De Wispelaere [02-11-12 - 13:14]
Bug fix in RelativeLevel

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