Squirtle Dances Circles Around Froakie 

"Summer of Discovery!" is the name of the episode that airs on XY.

At summer camp, Ash and friends meet Tierno, Trevor, and Shauna, three more trainers. 

Being a huge dance enthusiast, Tierno uses rhythmic moves to give his Squirtle an advantage in Pokémon combat.

Ash confronts Tierno and learns the hard way that this works really well.

Ash's Froakie struggles to hit Squirtle's unusual rhythmic battling style. Squirtle even touches Froakie, delaying its attacks until Tierno triumphs.

Tierno's dancing battle style appears several more times in the series, but it's never as odd.

Also See

Meowth Uses Outside Help to Defeat Onix