>>46267692If an attack would do anything extra to your Pokemon, like inflict status or anything other effect, it won't get the extra effect. All the attack will do is the damage printed on it.
For example, your Pokemon could still retreat after Stunfisk attacked because Espeon's ability says your Pokemon are unaffected by attack effects.