Bug & Error Reporting for Essentials Version 15.1 (unmodified)
View Single Post
November 18th, 2012 (06:27 AM).
Lead Dev of Pokémon Essentials
Join Date: Jan 2008
Quote originally posted by
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!
View original post
Yep, that's right. It's because I tend to copy lines of code from place to place, and don't always make sure it works. Different parts of the scripts refer to battlers in different ways, and indeed that end-of-round method refers to them in
ways in different places (sometimes i is a number, sometimes it's the battler itself).
The Pokémon Essentials Wiki
All Animations Project
View Public Profile
Send a private message to Maruno
Find all posts by Maruno
Find threads started by Maruno
Ignore Posts by Maruno