From 59fd1d4e538c1a702cba862b7539bed111af3e27 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Wed, 27 Nov 2013 14:03:59 +0000 Subject: [PATCH] BuffGain script condition works when using the new OvaleAura module. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1219 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- conditions/BuffGain.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/conditions/BuffGain.lua b/conditions/BuffGain.lua index 7600877..3a8cc1f 100644 --- a/conditions/BuffGain.lua +++ b/conditions/BuffGain.lua @@ -37,12 +37,8 @@ do local auraId, comparator, limit = condition[1], condition[2], condition[3] local target, filter, mine = ParseCondition(condition) local aura = state:GetAura(target, auraId, filter, mine) - if state:IsActiveAura(aura) then + if aura then local gain = aura.gain or 0 - if true then - Ovale:Error("not implemented") - return nil - end return TestValue(gain, math.huge, 0, gain, 1, comparator, limit) end return Compare(0, comparator, limit) -- 1.7.9.5