I decided to overhaul the jankiness of this resource by basically removing any need for the trainers pbs file. Now instead of using Trainer.battle(...), you'll use a new function called changingTrainerBattle(...) with the same parameters. Also I believe there was a level bug that I addressed.