Returns the spell resistance of the specified creature
Creature whose spell resistance to determine
Returns the spell resistance of the specified creature.
- Returns 0 if the creature has no spell resistance or an invalid creature is passed in.
It is unknown how effects which only affect certain alignments - such as Protection against Evil.
The lowest known spell resistance to be applied to a creature would be 11, highest around 33.
There is no way to use this value using the internal engine (No way to use ResistSpell, or even an altered value), however, custom checks could use this.
Also note that Spell Resistance does not stack. This simply returns what the game engine will use in ResistSpell - the highest value of spell resistance.
Previous bugs before 1.61 regarding Monks SR stacking with item SR and Spell SR has been fixed.
|categories:||Get Data from Creature Functions | Spells Functions|
author: Lilac Soul, editor: Jasperre, additional contributor(s): Jasperre