EffectSanctuary(int)

Creates a sanctuary effect.

effect EffectSanctuary(
    int nDifficultyClass
);

Parameters

nDifficultyClass

Must be a non-zero, positive number.


Description

Create a Sanctuary effect (see SPELL_SANCTUARY).
Returns an effect of type EFFECT_TYPE_INVALIDEFFECT if nDifficultyClass is less than or equal to 0.

The difficulty is the save DC in the sancuary spell, or, to put it another way, the DC of the will save needed to see through the person's sancuary. The save DC is done automatically for anyone who could see the person it is applied to if they didn't have the effect (IE: Line of sight to the person).



Remarks

Because EffectEthereal() has a bug and returns EFFECT_TYPE_SANCTUARY for it, any time EFFECT_TYPE_SANCTUARY is removed from a target, EffectEthereal() is too.


Version

1.22

See Also

functions: EffectEthereal
categories: Effects Functions
constants: SPELL_* Constants


 author: Charles Feduke, editor: Jasperre
 Send comments on this topic.