I am trying to randomize a trainer's party using a custom special before a normal trainer battle.
However, when I call the special and then start the trainer battle, it causes an infinite loop, and I cannot use release or releaseall properly after the battle.
If anyone knows how to solve this...