From 87e157876392c9b7d7fd20208618c5c8477ee3ad Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Sat, 11 Feb 2012 13:14:25 +0000 Subject: [PATCH] Bug fix in RelativeLevel git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@467 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Condition.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 1.7.9.5