I haven't tested this in the main series games, so it's possible Pokémon Showdown has it programmed incorrectly, but after doing some testing (replay link here: https://replay.pokemonshowdown.com/gen8ou-1236375965-6et6dhhjeaqdxnu8lhj6wstfmhrz5g1pw) I have found that Katy's original answer was...