Pokémon Brilliant Diamond and Shining Pearl host many attacks throughout its scattered Sinnoh region. One that can be easily missed is MT45 Attract, found in a side section of the game.
To find TM45 Attract, go to Hearthome City. It is located in the center of the map southwest of Solaceon Town and northeast of Oreburgh City. As soon as you reach the streets of Hearthome, go northwest from the Pokémon Center and enter Amity Square West Gate. You will need a cute Pokémon to enter the attraction to walk with.
From the large fountain, go northeast until you find a lady with brown hair and a white apron. Keep in mind for later that she can help you create Poffin for Pokémon contests. To its left, you'll find MT45 Attract next to some blue, white, and orange flowers. Also keep an eye out for the electric type Volt switch in this area.
Attracting does no harm to the opponent, but if his Pokémon is of the opposite sex, he will be in love with the user. This will make the opposing Pokémon less likely to attack. It has high accuracy and a decent PP rate of 15. Could be useful in an Elite Four match if used correctly.