From 9de833336cfbcef2815e9122006212484bf78ff1 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Tue, 15 Mar 2011 19:28:48 +0000 Subject: [PATCH] nextSwing and lastSwing were bugged git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@379 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- Condition.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Condition.lua b/Condition.lua index da968df..578d61b 100644 --- a/Condition.lua +++ b/Condition.lua @@ -452,7 +452,7 @@ Ovale.conditions= end return 0 end, - Class = function(condition) + Class = function(condition) local loc, noloc = UnitClass(getTarget(condition.target)) return testbool(noloc == condition[1], condition[2]) end, @@ -671,7 +671,7 @@ Ovale.conditions= return 0, ret end, lastSwing = function(condition) - return OvaleSwing:GetLast(condition[1]), 0, -1 + return Ovale.currentTime - OvaleSwing:GetLast(condition[1]), 0, 1 end, -- Compare with the player level -- 1 : "less" or "more" @@ -750,7 +750,7 @@ Ovale.conditions= return ret end, nextSwing = function(condition) - return OvaleSwing:GetNext(condition[1]), 0, -1 + return OvaleSwing:GetNext(condition[1]) - Ovale.currentTime, 0, -1 end, OtherDebuffExpires = function(condition) Ovale:EnableOtherDebuffs() -- 1.7.9.5