Immutable Form. The guardian is immune to any spell or effect that would alter its form.
Magic Resistance. The guardian has advantage on saving throws against spells and other magical effects.
Magic Weapons. The guardian's weapon attacks are magical.
Divert Magic (3/Day). When the guardian is hit by a damaging spell, it may reduce the damage taken by half, gaining a level of arcane overcharge.
Arcane Overcharge. The guardian may expend one or more levels of arcane overcharge to do any of the following: Add 2d12 force damage to the next attack it makes, add 2d12 force damage to its next use of any recharge ability, re-roll a failed saving throw, or increase any healing it receives by 20.
Multiattack. The guardian makes two melee attacks: one with its sword, and one with its stomp
Stomp. Melee Weapon Attack: +14 to hit, reach 10 ft., one target. Hit: 24 (3d10 + 8) bludgeoning damage.
Sword. Melee Weapon Attack: +14 to hit, reach 20 ft., one target. Hit: 30 (6d6 + 9) slashing damage plus 7 (2d6) force damage.
Arm Cannon (Recharge 6). The guardian opens up a vent in its hand to discharge a burst of arcane energy, exploding in a burst of crackling lightning. Each creature in a 20-foot radius sphere within 150 feet of the guardian must make a DC17 dexterity saving throw. A target takes 49 (14d6) lightning damage on a failed save, or half as much damage on a successful one.
Twin Shoulder-Mounted Flamecasters (Recharge 5-6). The guardian makes a ranged spell attack against up to 2 creatures: +9 to hit, range 120 feet. Hit: 27 (5d10) fire damage and the target is ignited, taking 1d10 fire damage at the start of each of its turns. A creature can extinguish the flames using an action to make a DC17 dexterity check, or by dousing the flames in some manner.
The guardian can take 3 legendary actions, choosing from the options below. The guardian regains spent legendary actions at the start of its turn.
Slash. The guardian makes a sword attack.
Arcane Charge. The guardian heals 10 hp.
Arcane Overcharge (Costs 2 actions, Recharge 6). The guardian heals 10hp and gains a level of arcane overcharge.
Thunderous Stomp (Costs 2 actions, Recharge 6). The guardian stomps the ground with terrifying force. Each creature within 10 feet of the guardian must make a DC 20 strength save. A target takes 11(2d10) bludgeoning damage and 11 (2d10) thunder damage and is knocked prone, or takes half as much damage and is not knocked prone on a successful save. Creatures outside of 10 feet but within 30 feet of the guardian must make a DC 18 strength save, taking 11(2d10) thunder damage on a failed save.