Table of Contents

Method CheckResistSpell

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

CheckResistSpell(NwGameObject)

Performs a spell resistance check between this creature (caster) and the specified target.

public ResistSpellResult CheckResistSpell(NwGameObject target)

Parameters

target NwGameObject

The target object to perform the spell resist check.

Returns

ResistSpellResult

NonPlayerSpell if spell cast is not a player spell.
Resisted if spell is resisted.
ResistedMagicImmune if spell is resisted via magic immunity.
ResistedSpellAbsorbed if spell is resisted via spell absorption.

Remarks

For more nuanced control on spell resistance checks, consider using SpellResistanceCheck(NwGameObject, NwSpell?, int?, int?, bool).

See Also