Thread: Spells: Necromancer Splurt
View Single Post
  #9  
Old 03-11-2015, 09:20 PM
Technique Technique is offline
Sarnak


Join Date: Jun 2013
Posts: 451
Default

Spells with this formula must have used a counter to track the tick. The question is whether there was bounds checking on this variable and if so, what did a failed check result in?

If the formula were 12*tick - 1, and the counter wasn't bounded, then it'd be 17 on the extra tick, yielding 12*17 - 1 = 203.

Likewise, if the formula were 12*(duration_in_ticks - (ticksleft - 1)) - 1, and the counter wasn't bounded, then it'd be 0 on the extra tick, yielding 12*(16 - (0 - 1)) - 1 = 203 also.
Reply With Quote