I was playing pokémon emerald, hunting for Latios, but i acc killed it then saved (i didnt know he would be gone forever). I opened PKHeX to revive it. I revived latios but when i found it in the wild,he was half-dead, i could still interact with it but any attack would defeat latios and if i didnt catch it at first try my game would be stuck at the battle screen. this bug is "fixed" when u catch it (it shows that the latios was fainted). I just think it is a pretty cool glitch