A spellcast has already started if startCast <= now.
Johnny C. Lam [05-19-14 - 16:41]
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
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.