Quantcast

bug fix relating to the new antilatency feature

Sidoine De Wispelaere [01-20-10 - 19:14]
bug fix relating to the new antilatency feature

git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@208 d5049fe3-3747-40f7-a4b5-f36d6801af5f
Filename
Ovale.lua
diff --git a/Ovale.lua b/Ovale.lua
index 4933bf7..ca99b56 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -352,6 +352,12 @@ function Ovale:COMBAT_LOG_EVENT_UNFILTERED(event, ...)
 		local time, event, sourceGUID, sourceName, sourceFlags, destGUID, destName, destFlags = select(1, ...)
 		-- self:Print("event="..event.." source="..sourceName.." destName="..destName)
 		if sourceName == UnitName("player") then
+			if string.find(event, "SPELL_") == 1 then
+				local spellId, spellName = select(9, ...)
+				if spellName == self.lastSpellName then
+					self.lastSpellName = nil
+				end
+			end
 			if string.find(event, "SPELL_AURA_") == 1 then
 				local spellId, spellName, spellSchool, auraType = select(9, ...)
 				if auraType == "DEBUFF" and self.spellInfo[spellName] and self.spellInfo[spellName].duration then
@@ -1055,7 +1061,7 @@ function Ovale:InitCalculerMeilleureAction()
 		if (spell) then
 			self:AddSpellToStack(spell, startTime/1000, endTime/1000, endTime/1000)
 		elseif self.lastSpellName then
-			if self.lastSpellName and self.maintenant - self.lastSpellTime<0.3 then
+			if self.lastSpellName and self.maintenant - self.lastSpellTime<1 then
 				self:AddSpellToStack(self.lastSpellName, self.lastSpellTime, self.lastSpellTime, self.lastSpellTime)
 			end
 		end