Hey! I was wondering if this is really a bug or if it works like that: https://replay.pokemonshowdown.com/gen8ou-1136457911
On Turn 3, I use Soak against Aegislash. He lost his Ghost Type in the process.
On Turn 4, I use Block against it, so he can't leave.
On Turn 7, Aegislash switches...