There are multiple times where effects are evaluated in the attack procedure:
[*=1]After doing requirements like flipping a coin, we check for effects that alter or cancel damage calculations (for example "during your opponent's next turn...").
[*=1]Then we used to check for Confusion, but...