View Single Post
  #25    
Old May 8th, 2008, 02:27 AM
glenn14256
Beginning Trainer
 
Join Date: May 2008
Gender:
Quote:
Originally Posted by Wichu View Post
After line 506 in PokeBattle_AI (def pbEnemyShouldWithdraw?(index)), add this to a new line:
Code:
 attacker=@battlers[index]
It should look like this:
Code:
def pbEnemyShouldWithdraw?(index)
 attacker=@battlers[index]
 shouldswitch=false
 typecheck=false
 movetype=-1
Thnx, the problem is indeed solved =)