From 0a3b727b9dabadcbb3287d99c731654ab399da46 Mon Sep 17 00:00:00 2001 From: "Johnny C. Lam" Date: Mon, 19 May 2014 16:41:23 +0000 Subject: [PATCH] A spellcast has already started if startCast <= now. The opposite of that is startCast > now -- fix the inequality. This fixes ticket 364 where the rune cost of Army of the Dead was being applied in the simulator after the resources for the spell were already consumed in the game. git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@1470 d5049fe3-3747-40f7-a4b5-f36d6801af5f --- OvaleFuture.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvaleFuture.lua b/OvaleFuture.lua index cb3a404..a2c3e4c 100644 --- a/OvaleFuture.lua +++ b/OvaleFuture.lua @@ -794,7 +794,7 @@ statePrototype.ApplySpell = function(state, ...) 4. Effects after the spellcast hits the target (possibly due to server lag). --]] -- If the spellcast has already started, then the effects have already occurred. - if startCast >= now then + if startCast > now then OvaleState:InvokeMethod("ApplySpellStartCast", state, ...) end -- If the spellcast has already ended, then the effects have already occurred. -- 1.7.9.5