Innate Spellcasting. Baphomet's spellcasting ability is Charisma (spell save DC 19, +11 to hit with spell attacks). He can innately cast the following spells, requiring no material components:
Charge. If Baphomet moves at least 10 feet straight toward a target and then hits it with a gore attack on the same turn, the target takes an extra 16 (3d10) piercing damage. If the target is a creature, it must succeed on a DC26 Strength saving throw or be pushed up to 10 feet away and knocked prone. Demonic Awakening (Recharges after a Short or Long Rest). If Baphomet would be reduced to 0 hit points, his current hit point total instead resets to 257 (80% of his maximum hit points) hit points, he regains any expended uses of Legendary Resistance and any creature with that is immune to his Frightful Presence loses it's immunity. Additionally, he can now use the options in the "Mythic Actions" section for 1 hour. Labyrinthine Recall. Baphomet can perfectly recall any path he has travelled, and he is immune to the maze spell. Legendary Resistance (4/Day). If Baphomet fails a saving throw, he can choose to succeed instead. Magic Resistance. Baphomet has advantage on saving throws against spells and other magical effects. Magic Weapons. Baphomet's weapon attacks are magical. Reckless. At the start of his turn, Baphomet can gain advantage on all melee weapon attack rolls during that turn, but attack rolls against him have advantage until the start of his next turn.
Multiattack. Baphomet makes three attacks: one with Heartcleaver, one with his bite, and one with his gore attack. He also uses Frightful Presence. Heartcleaver. Melee Weapon Attack: +18 to hit, reach 15 ft., one target. Hit: 21 (2d10 + 10) slashing damage. Bite. Melee Weapon Attack: +18 to hit, reach 10 ft., one target. Hit: 19 (2d8 + 10) piercing damage. Gore. Melee Weapon Attack: +18 to hit, reach 10 ft., one target. Hit: 17 (2d6 + 10) piercing damage. Frightful Presence. Each creature of Baphomet's choice within 120 feet of him and aware of him must succeed on a DC: 19 Wisdom saving throw or become frightened for 1 minute. A frightened creature can repeat the saving throw at the end of each of its turns, ending the effect on itself on a success. These later saves have disadvantage if Baphomet is within line of sight of the creature. If a creature succeeds on any of these saves or the effect ends on it, the creature is immune to Baphomet's Frightful Presence for the next 24 hours.
Seal. Baphomet seals one doorway or other entryway he can see. The opening must be unoccupied. It is filled with solid stone for 1 hour or until Baphomet ends the effect with a Bonus Action. Shift. Baphomet chooses a room he can see that is no larger in any dimension than 100 feet. Until the start of his next turn, gravity is reversed within that room. Any creatures or objects in the room when this happens fall in the direction of the new pull of gravity, unless they have some means of remaining aloft. Baphomet can ignore the gravity reversal if he's in the room, although he likes to use this action to land on a ceiling to attack targets flying near it. Shroud. Baphomet casts mirage arcane, affecting a room he can see that is no larger in any dimension than 100 feet. The effect ends at the start of his next turn.
Baphomet 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. Baphomet regains spent legendary actions at the start of his turn. Heartcleaver Attack. Baphomet makes a melee attack with Heartcleaver. Charge (Costs 2 Actions). Baphomet moves up to his speed, then makes a gore attack.
On initiative count 20 (losing initiative ties), Baphomet can take a lair action to cause one of the following magical effects; he can't use the same effect two rounds in a row:
Baphomet's Lair is the palace Lyktion.