Every pokemon is fainted?

So, I just beat Audrey. I had only a delta gallade not fainted. I decided it would be faster to get gallade fainted than to go back to the town, so I decided to try to do that. A golem appeared, and then it used self-destruct. I now have a full team of fainted pokemon. If I encounter a pokemon, it crashes, and says, “Player has no unfainted pokemon.” It should be easy enough for me to get back to the pokemon center with repels, but I want the insurgence team to be aware of this.


Yes I know this screenshot sucks, bear with me.

It happened to me when fighting Persephone. i destiny bonded, and had no one left.

It was pretty funny, because I thought i was gonna lose the battle, and i won!

So from this I can tell that if both you and your opponent run out of pokemon on the same turn, be it through destiny bond, explosion, or possibly even burn, toxic, rocky helmet, etc. that you will win the battle and have no pokemon. Very strange.