>Once created, all stat modifying attacks and side effects of attacks used by the opponent against the user will fail, though all current stat modifiers will remain in effect and any stat modifiers used by the user will also be applied to the substitute.
There you go. I think this is what you meant. That's for Gen 1.
Other Gen effects/changes in the same link.