Pokémon with the ability Own Tempo or those behind a Substitute cannot be confused.
Confused Pokémon have a 50% chance of hurting themselves each turn, for up to 4 turns. The damage received is as if the Pokémon attacks itself with a typeless 40 base power Physical attack.