Hi, how's it going? So i'm having a certain issue with my randomized version of pokémon Moon. The game bugs whenever a trainer uses a mega form. I allowed random megas to appear in the wild as well as allow trainers to have them, but when i beat a trainer whose last pokémon is a mega, the game says that the trainer is about to send the same pokémon i just defeated... but it sends the mon with no sprite, hp in the red, and i can't damage it, thus getting stuck in a loop.
Weird thing is that Hau sent me an Ampharos, mega-evolved it and i could finish the battle (it was the starter battle, 1st in the game) but then sent me a Beedrill on the 2nd battle, mega-evolved it, and i got stuck. Same with another trainer in other version of the randomized game, sending an Aerodactyl and mega-evolving it. I could just turn off mega-evos, but, is there a way to fix this? Thanx in advance