Divine Knight (5e Subclass)
From D&D Wiki
The Divine Knight is an individual who has dedicated his time and training to defeat spellcasters as well as other non magical foes. He or she train, pray and equip himself for such a duty. Spellcasters who doesn’t get their magical powers from nature or use them to heal are a dangerous hassle and a menace to the people and country. All those who serves as a templar has the the blessing of the god (Insert god here) which makes them specialize in anti-magic combat.
At 3rd level when choosing this subclass you gain +1 to hit with one weapon class of your choice (Long swords, Longbows. Clubs etc.) and any magical damage you suffer while wearing medium or heavy armour are reduced by 3.This increases to 5 if you're wielding a shield as well. Which makes the user immune to low damage auto hit spells like Magic Missile. Also Any healing from a Cleric, Paladin or Druid spell or ability is increased by 3
in lvl 7 Whenever you are the target of or in an area of a spell that will affect you (friendly or not) roll a D20, on 5 or under on the D20 you ignore the spell and any damage or effect it would do on you (this includes buff spells, hexes, damage spells and spells that gives tempt HP. Normal Healing spells stills works on you as normal if coming from a Paladin, Druid, Ranger or Cleric)
At 10th level, you can choose a second option from the Fighting Style class feature
At lvl 15 You have advantage on all Intelligence, Wisdom, and Charisma saving throws against magic.
At lvl 20 You have resistance to damage from spells.