View Single Post
  #24    
Old May 8th, 2008, 02:18 AM
Wichu's Avatar
Wichu
Project Amethyst
 
Join Date: Sep 2007
Location: North Herts, England
Age: 21
Gender: Male
Nature: Naive
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
__________________