Pokemon Ultra Sun Error Invisible/Immortal Trainer Pokemon

Enter a description of your issue here, in full detail.

When Play Ultra Sun Ive encountered a random glitch that makes a pokemon I defeat Be “sent out” again at low health without a model and it is invulnerable to damage because all attacks come up with “But It Didnt Work!”

I have Randomized the game But Im unaware of anyone having this glitch because of that as I havent found any reports of it prior.

System Information

Log: https://pastebin.com/98XdVmLL

Paste your entire console window log here.

In order to save a copy of the log, follow this guide: How to Upload the Log File

You’ve said it yourself. You modified the ROM. If you play this exact ROM on a 3DS and the same thing happens, you’ll know it’s the ROM hack and not CItra.

I found the problem for some reason it was overlapping a file from the game and the one that was supposed to replace it, is there a way to mark this as solved?

Already did it. To mark a post as solved, click on the three dots on the post and then the check mark.

How can i fix it ???