This happened a while ago but it still has me concerened. I was on PS in a battle. I was using a Primal Kyogre, the opponents active pokemon was Xerneas. Primal Kyore's ability, Primordial Sea, was active and I used the move Thunder. However it missed. I knew that this was a bug or glitch...