Notably, spell resistance didn't work that way, and it's not so clear armor class did. Still, it's probably not a problem to allow people to voluntarily choose to be hit.

(Dungeons & Dragons)
Rulebook featuring "high magic" options, including a host of new spells.