bug fixes for spells that removes a buff when cast (molten core)
Sidoine De Wispelaere [10-17-10 - 18:00]
bug fixes for spells that removes a buff when cast (molten core)
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@305 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/Ovale.lua b/Ovale.lua
index a926f81..d70ef7b 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -1235,17 +1235,19 @@ function Ovale:AddSpellToStack(spellId, startCast, endCast, nextCast, nocd)
newAura.ending = endCast + duration
end
elseif stacks<0 and newAura.ending then
- --if filter~="HELPFUL" or target~="player" or startCast>=Ovale.maintenant then
+ --Buff are immediatly removed when the cast ended, do not need to do it again
+ if filter~="HELPFUL" or target~="player" or endCast>=Ovale.maintenant then
newAura.stacks = newAura.stacks + stacks
if Ovale.trace then
- self:Print("removing aura "..auraSpellId.." because of ".. spellId)
+ self:Print("removing one stack of "..auraSpellId.." because of ".. spellId.." to ".. newAura.stacks)
end
--Plus de stacks, on supprime l'aura
if newAura.stacks<=0 then
+ self:Log("Aura is completly removed")
newAura.stacks = 0
newAura.ending = 0
end
- --end
+ end
elseif newAura.ending and newAura.ending >= endCast then
newAura.ending = endCast + duration
newAura.stacks = newAura.stacks + 1
diff --git a/Ovale.toc b/Ovale.toc
index 5ce9edd..9dbcf60 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: 4.0.9
+## Version: 4.0.10
## OptionalDeps: Ace3, ButtonFacade, Recount, Skada, LibBabble-CreatureType-3.0
## SavedVariables: OvaleDB
## SavedVariablesPerCharacter: OvaleDBPC
diff --git a/OvaleCompile.lua b/OvaleCompile.lua
index 181d4b3..56a70e0 100644
--- a/OvaleCompile.lua
+++ b/OvaleCompile.lua
@@ -23,7 +23,7 @@ local function ParseParameters(params)
end
paramList[k] = v
end
- params = string.gsub(params,"%w+=%w+","")
+ params = string.gsub(params,"%w+=[-%w\\_%.]+","")
local n=0
for w in string.gmatch(params, "[-%w_\\%.]+") do
if (string.match(w,"^%-?%d+%.?%d*$")) then