So, I found something while using this. If you start a battle with a trainer randomizing it, it works perfectly. But if you try to battle them again, they lose a Pokemon that's equal to the Guaranteed. I tried it with an event that had 10 Pokemon and one Guaranteed, but when I tried to rematch...