http://replay.pokemonshowdown.com/uu-371712854
Hiiii okay so this may not be a bug I don't know, I tried to figure out if this is the way it's supposed to work or not and found nothing. It just very much seems to me this is not the way it's supposed to work lol.
If you go to turn 19, the final turn of the match, you will see that Flare Blitz killed my opponents Uxie. I then died to the opposing Uxie's Rocky Helmet. I tried to look for competitive clauses, and it seems that self-KO clause doesn't exist anymore I guess. So if it doesn't exist, shouldn't it be a tie? And if it is still in affect, is it properly implemented into PS? Self-KO clause states: If both players have only one Pokemon left, moves which KO both the user and the opponent are not allowed (e.g. Explosion, Destiny Bond).
If recoil damage would cause a tie, Self KO Clause does not activate, and the player who last attacked is the winner.
Now, given that I was the player who last attacked, should I not have won?
The log also states that my Darmanitan died before Uxie died, is that truly how it would happen on Wifi? Would it first state the I died to Rocky Helmet before stating that Uxie died to Flare Blitz? I'm a bit confused here, maybe this is how it is supposed to work, but it doesn't seem right.