Magic resistance

Magic resistance is a – sometimes natural – status effect on a creature which determines the chance that a spell cast on this creature will outright fail and spell effects not being applied. Some races, such as the drow, have inherent magic resistance. Many items grant a certain, often accumulative magic resistance to their wearer or consumer.

In terms of game mechanics, the spell itself defines if it is blocked by magic resistance or will bypass it.