Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
https://replay.pokemonshowdown.com/gen8nationaldex-1195229329-aioyvjew1e21xiu70xeeckabvx5f5pfpw
Turn 23 and 46, opponent's Skarmory is able to switch on Magnet Pull's Magnezone. I'm not Analytic as my specs thunderbolt doesn't hit that hard and of course, i'm not sturdy.
BUG STATUS: NOT A BUG...