last tick from a channeled spell was omitted
Sidoine De Wispelaere [04-17-11 - 13:27]
last tick from a channeled spell was omitted
git-svn-id: svn://svn.curseforge.net/wow/ovale/mainline/trunk@400 d5049fe3-3747-40f7-a4b5-f36d6801af5f
diff --git a/Ovale.lua b/Ovale.lua
index 7c995cf..37fd78d 100644
--- a/Ovale.lua
+++ b/Ovale.lua
@@ -1922,7 +1922,7 @@ function Ovale:CalculerMeilleureAction(element)
self:Print(spellName.." restant = " .. restant)
self:Print("ticks = "..ticks.." tickLength="..tickLength.." tickTime="..tickTime)
end
- for i=1,ticks-1 do
+ for i=1,ticks do
if restant<=tickTime then
restant = tickTime
break