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/gen7doublesou-668441063
I shared this replay of mine with some friends and they said this method of giving Shedinja Sturdy in doubles by mimicking Entrainment onto a poke with Sturdy and then using Entrainment on Shedinja was a bug with Showdown. I didn't see...