And of course hit by a Physical move.
Editor Edit: Because you people can't seem to understand what is being asked, let me give you an example.
A Pikachu uses Substitute. A Pidgey then attacks the Pikachu. Will Static activate on the Pidgey?
No because the attack does not hit the pokemon it will hit the substitute
How to change your username
How to add a user avatar
Why was my post hidden?
Flags vs Downvotes
Official PokemonDb League
Type a Pokemon name, type, move or ability to see instant results.