How can I prevent, that the enemy is swiching out pokemon in a battle? Somewhere in the script, I guess.
def pbEnemyShouldWithdraw?(index)
return false
In PokeBattle_AI, search for
Right below it, addCode:def pbEnemyShouldWithdraw?(index)
.Code:return false
The opponent won't switch out unless it's a side effect of the move it chose to use against you.