Magic Immunity (3.5e Feat)
From D&D Wiki
Magic Immunity [General]
Your even more like a golem than before, you are slowly becoming immune to magic.
Prerequisite: Cha 30 Int 30 or Wis 30, character level 21+, magic resistant
Benefit: Choose a single school of magic, from now on you are immune to all spell, spell-like, and supernatural abilities of that school.