Vanilla Protection From Magic Energy

Protection From Magic Energy
(Abjuration)

Level: 6
Range: Touch
Duration: 1 turn/level
Casting Time: 6
Area of Effect: 1 creature
Saving Throw: None

When the spell is cast, it confers 100% invulnerability to all magic-based attacks such as Magic Missile or Abi-Dalzim’s Horrid Wilting. This effect lasts for the duration of the spell or until dispelled.