>>36707850They intentionally broke the rules there to make that Dragonite a more formidable opponent for Ash to overcome.
They started strictly abiding by the four move limit in DP. The last time a Pokemon used more than four moves was Ash's Snorlax back in the Battle Frontier, where it used Protect, Headbutt, Hyper Beam, Ice Punch, Rest, and Body Slam) in a single battle.