Legendary Resistance (3/day): If the dragon fails a saving throw, it can choose to succeed instead.
Multiattack. The dragon can use its Frightful Presence . It then makes three attacks: one with its bite and two with its claws.
Bite. Melee Weapon Attack: +11 to hit, reach 10 ft., one target. Hit: 17 (2d10+6) piercing plus 4 (1d8) acid damage.
Claw. Melee Weapon Attack: +11 to hit, reach 5 ft., one target. Hit: 17 (2d6+6) piercing damage
Tail. Melee Weapon Attack: +11 to hit, reach 15 ft., one target. Hit: 174 (2d8+6) bludgeoning damage.
Frightful Presence. Each creature of the dragon's choice that is within 120 feet of the dragon and aware of it must succeed on a DC 16 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of its turns, ending the effect on itself on a success. If a creature's saving throw is successful or the effect ends for it, the creature is immune to the dragon's Frightful Presence for the next 24 hours.
Breath Weapon (Recharge 5-6). The dragon uses one of the following breath weapon:
Candy Breath. The dragon exhales multicolored pieces of elemental candy in a 60-foot cone. Each creature in that cone must make a DC 18 Dexterity saving throw. Each creature that fails this save takes 3d8 acid, 3d8 cold, 3d8 fire, and 3d8 lightning damage, or half as much damage on a successful save. The ground beneath the cone becomes difficult terrain until the loose candy is cleared.
Frosting Breath. The dragon exhales a line of frosting in a 60-foot line that slows the creatures it covers. Each creature in that line must make a DC 18 Constitution saving throw. On a failed save, the creature can't use reactions, its speed is halved, and it can't make more than one attack on its turn. In addition, the creature can use either an action or a bonus action on its turn, but not both. These effects last for 1 minute. The creature can repeat the saving throw in itself with a successful save.
The dragon can take 3 legendary actions, choosing from the options below. Only one legendary action option can be used at a time and only at the end of another creature's turn. The dragon regains spent legendary actions at the start of its turn.
Detect. The dragon makes a Wisdom (Perception) check.
Tail Attack. The dragon makes a tail attack.
Wing Attack. The dragon beats its wings. Each creature within 10 feet of the dragon must succeed on a DC 19 Dexterity saving throw or take 13 (2d6+6) bludgeoning damage and be knocked prone. The dragon can then fly up to half its flying speed.