Episode 29
After a breakthrough, Ash is back at the Snowbelle City Gym for a rematch with Wulfric—and this time, things are quite different! Wulfric challenges Ash to show him a fiery battle, and Ash certainly delivers, as his Pikachu and Talonflame take down the Gym Leader’s Bergmite and Avalugg before the exciting final face-off. It’s Greninja versus Abomasnow…and then it’s Ash-Greninja versus Mega Abomasnow, as Wulfric reveals an unexpected Key Stone! Even in the face of such a challenge, Ash-Greninja rises to the occasion, and Ash wins his final Gym badge and qualifies for the Kalos League!
Aired 02/06/2016EP 29 - Episode 29

Pokémon the Series: XYZ
The journey of Satoshi and his friends through the Kalos region continues! After Satoshi obtains his seventh gym badge, the group is moving toward the next town when Eureka discovers a mysterious Pokémon resting in her pochette. Soon given the name Puni-chan, it is one that even Satoshi and Serena's new Pokémon Zukan cannot identify. However, it quickly becomes apparent that Puni-chan is the target of a mysterious group clad in bright red suits known as Team Flare, aiming to capture the new Pokémon to further their agenda. But when Satoshi and the gang realize that the enigmatic organization has no intention of treating Puni-chan with any decency, they take a stand in opposition to Team Flare's plans, daring to fight back.
With Gojika's predictions looming above them, Satoshi aims for his final gym badge while Serena contests for her last Princess Key in order to be able to compete at the TriPokalon Master Class. But as Team Flare begins to move in search of the mysterious Z, the stories of Pokemon XY and Pokemon XY: Mega Evolution cross paths as Satoshi and his friends, along with Team Rocket, get caught up in a scheme that could put Kalos in great danger.
(Source: MAL Rewrite)