Quantcast

bug fix with toggled aura like hunter aspects

Sidoine De Wispelaere [12-23-09 - 13:14]
bug fix with toggled aura like hunter aspects

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@173 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Condition.lua
Ovale.lua
Ovale.toc
diff --git a/Condition.lua b/Condition.lua
index 433dc17..7a652f2 100644
--- a/Condition.lua
+++ b/Condition.lua
@@ -205,9 +205,9 @@ local function GetTargetAura(condition, filter, target)
 	end
 	local spellId = condition[1]
 	local aura = Ovale:GetAura(target, filter, spellId)
-	if Ovale.trace then
+	-- if Ovale.trace then
 	--	Ovale:Print("GetTargetAura = start = ".. nilstring(aura.start) .. " end = "..nilstring(aura.ending).." stacks = " ..nilstring(aura.stacks).."/"..stacks)
-	end
+	-- end
 	if (not condition.mine or aura.mine) and aura.stacks>=stacks then
 		return aura.start, aura.ending
 	else
diff --git a/Ovale.lua b/Ovale.lua
index a097661..4fc127e 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -806,7 +806,12 @@ function Ovale:GetAura(target, filter, spellId)
 		if (unitCaster=="player" or not myAura.mine) and name == auraName and icon==auraIcon then
 			myAura.mine = (unitCaster == "player")
 			myAura.start = expirationTime - duration
-			myAura.ending = expirationTime
+			if expirationTime>0 then
+				myAura.ending = expirationTime
+
+			else
+				myAura.ending = nil
+			end
 			if count and count>0 then
 				myAura.stacks = count
 			else
diff --git a/Ovale.toc b/Ovale.toc
index cf01643..c00e935 100644
--- a/Ovale.toc
+++ b/Ovale.toc
@@ -3,7 +3,7 @@
 ## Notes: Show the icon of the next spell to cast
 ## Notes-frFR: Affiche l'icône du prochain sort à lancer
 ## Author: Sidoine
-## Version: 3.3.4
+## Version: 3.3.5
 ## OptionalDeps: Ace3, ButtonFacade, Recount
 ## SavedVariables: OvaleDB
 ## SavedVariablesPerCharacter: OvaleDBPC