The second fundamental reaction mechanism pattern is Nucleophilic Attack, which describes the flow of electrons from an electron-rich species (a nucleophile) to an electron-poor species (an electrophile). The number of curved arrows used to illustrate a nucleophilic attack depends on the nature of the electrophile.
In this example, the chloride ion acts as a nucleophile, using its lone pair to attack the electron-deficient carbon of the tert-butyl cation.
The electrons end up being sharing rather than transferred. Note that the electrons in the above case become the bond between the Cl and the C atom of the electrophile.
Nucleophilic attack may require more than one curved arrow.
You could in come cases show the resonance first and then the nucleophilic attack.
Recall that a pi (π) bond can also function as a nucleophile.
When a pi bond reacts with an electrophile, only one carbon atom of the pi bond forms a new bond with the electrophile, utilizing the shared electron pair from the pi bond to establish this connection.