Defending Pokemon is the one that is active when you attack. If they play a float stone, guzma, or other switching cards to get the original defending Pokémon out of the active spot and switch it with a new one, that effect does not apply to the new defending Pokémon.
Example: if you use this...