Quantcast

BuffGain script condition works when using the new OvaleAura module.

Johnny C. Lam [11-27-13 - 14:03]
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
Filename
conditions/BuffGain.lua
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)