my settings are trainer, moveset, seeded, item. and it happened everytime on the same trainer, i had to debug my way through by walking through walls to get past the trainer, got to crawli and he wouldn't send out a pokemon after the first one fainted.