Bypass Self-Immunity (3.5e Feat)
From D&D Wiki
Bypass Self-Immunity [Epic]
You can affect yourself with spells that you would normally be immune to.
Prerequisite: Immunity to a type of effect or energy
Benefit: Whenever you cast a spell or spell-like ability on yourself that you would normally be immune to, you can choose to bypass your own immunity to that effect. For example a Lich who casts bless would now be able to gain the benefit of the spell even though he would normally be immune to mind-affecting spells.
Normal: You are not able to gain the benfits of spells or spell-like abilities that you are immune to.