From 38f5e127d81ad7cd842df7547bd4dbf772ef42ea Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Sat, 5 Feb 2011 20:07:03 +0000 Subject: [PATCH] fix for RelativeLevel function git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@354 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Condition.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 1.7.9.5