View Single Post
  #392    
Old November 18th, 2012, 05:28 AM
mad.array's Avatar
mad.array
Eeveelutions... need more...
 
Join Date: Nov 2007
Location: Birmingham, UK
Age: 29
Gender: Male
Nature: Rash
During the end of round phase in PokeBattle_Battle, I've found something slightly peculiar. Everything runs fine up until

'@battlers[i].pbAbilitiesOnSwitchIn(false)' (Line 3372)

This seems to only run through once (it is nested in a 'for i in priority' loop). Subsequently, the next turn starts before things like the flinch effect etc. have finished resetting.

EDIT: I figured it out. Actually, it was posting it which drew my attention to it. '@battlers[i]' needs to be changed to i. I can't believe I've been scratching my head over this for the last half an hour!

Last edited by mad.array; November 18th, 2012 at 05:34 AM. Reason: Fixed it.