Tiamat

Gargantuan fiend, chaotic evil "Armor Class 25 (natural armor)""Hit Points 615 (30d20 + 300)""Speed 60 ft., fly 120 ft.""STR 30 (+10)""DEX 10 (+0)""CON 30 (+10)""INT 26 (+8)""WIS 26 (+8)""CHA 28 (+9)"Saving Throws Strength +19, Dexterity+9, Wisdom +17

Skills
Arcana +17

Perception +26

Religion +17

Damage Immunities: acid, cold, fire, lightning, poison; bludgeoning, piercing, and slashing from nonmagical weapons

Condition Immunities: blinded, charmed, deafened, frightened, poisoned, stunned

Senses darkvision 240 ft., truesight 120 ft., passive Perception 36

Languages Common, Draconic, Infernal

Challenge 30 (155,000 XP)

Abilities
Discorporation. When Tiamat drops to 0 hit points or dies, her body is destroyed but her essence travels back to her domain in the Nine Hells, and she is unable to take physical form for a time.

Innate Spellcasting (3/Day). Tiamat can innately cast divine word (spell save DC 26). Her spell casting ability is Charisma.

Legendary Resistance (5/Day). If Tiamat fails a saving throw, she can choose to succeed instead.

Limited Magic Immunity. Unless she wishes to be affected, Tiamat is immune to spells of 6th level or lower. She has advantage on saving throws against all other spells and magical effects.

Magic Weapons. Tiamat's weapon attacks are magical.

Multiple Heads. Tiamat can take one reaction per turn, rather than only one per round. She also has advantage on saving throws against being knocked unconscious. If she fails a saving throw against an effect that would stun a creature, one of her unspent legendary actions is spent.

Regeneration. Tiamat regains 30 hit points at the start of her turn.

Actions
Multiattack. Tiamat can use her Frightful Presence. She then makes three attacks: two with her claws and one with her tail.

Claw. Melee Weapon Attack: +19 to hit, reach 15 ft., one target. Hit: 24 (4d6 + 10) slashing damage.

Tail. Melee Weapon Attack: +19 to hit, reach 25 ft., one target. Hit: 28 (4d8 + 10) piercing damage.

Frightful Presence. Each creature of Tiamat’s choice that is within 240 feet of Tiamat and aware of her must succeed on a DC 26 Wisdom saving throw or become frightened for 1 minute. A creature can repeat the saving throw at the end of each 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 Tiamat's Frightful Presence for the next 24 hours.

Legendary Actions
Tiamat can take 5 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. Tiamat regains spent legendary actions at the start of her turn.

Tiamat’s legendary action options are associated with her five dragon heads (a bite and a breath weapon for each). Once Tiamat chooses a legendary action option for one of her heads, she can’t choose another one associated with that head until the start of her next turn.

Bite. Melee Weapon Attack: +19 to hit, reach 20 ft., one target. Hit: 32 (4d10 + 10) slashing damage plus 14 (4d6) acid damage (black dragon head), lightning damage (blue dragon head), poison damage (green dragon head), fire damage (red dragon head), or cold damage (white dragon head).

Black Dragon Head (2)
Acid Breath (Costs 2 Actions). Tiamat breathes acid in a 120-foot line that is 10 feet wide. Each creature in that line must make a DC 27 Dexterity saving throw, taking 67 (15d8) acid damage on a failed save, or half as much damage on a successful one.

Blue Dragon Head (4)
Lightning Breath (Costs 2 Actions). Tiamat breathes lightning in a 120-foot line that is 10 feet wide. Each creature in that line must make a DC 27 Dexterity saving throw, taking 88 (16d10) lightning damage on a failed save, or half as much damage on a successful one.

Green Dragon Head (3)
Poison Breath (Costs 2 Actions). Tiamat breathes poisonous gas in a 90-foot cone. Each creature in that area must make a DC 27 Constitution saving throw, taking 77 (22d6) poison damage on a failed save, or half as much damage on a successful one.

Red Dragon Head (5)
Fire Breath (Costs 2 Actions). Tiamat breathes fire in a 90-foot cone. Each creature in that area must make a DC 27 Dexterity saving throw, taking 91 (26d6) fire damage on a failed save, or half as much damage on a successful one.

White Dragon Head (1)
Cold Breath (Costs 2 Actions). Tiamat breathes an icy blast in a 90-foot cone. Each creature in that area must make a DC 27 Dexterity saving throw, taking 72 (16d8) cold damage on a failed save, or half as much damage on a successful one.