From 56c51087d89aa34268b3d4c5ec93f87c375115d5 Mon Sep 17 00:00:00 2001 From: Sidoine De Wispelaere Date: Wed, 23 Dec 2009 13:14:27 +0000 Subject: [PATCH] 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 --- Condition.lua | 4 ++-- Ovale.lua | 7 ++++++- Ovale.toc | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) 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 -- 1.7.9.5