Pyroak @ Lagging Tail
Leaf Storm | Overheat | Leaf Storm
If Pyroak is asleep, then use Sleep Talk [Overheat/Leaf Storm/Zap Cannon/Inferno].
If Meloetta is not behind a Substitute and Meloetta is not Burned and Safeguard is not active on Meloetta's field and Pyroak holds Lagging Tail and Pyroak is not under the effects of Embargo and Magic Room is not active, then use Inferno.
If Meloetta is Burned and Meloetta uses Facade, then use Counter.