Table of Contents

Method SpellImmunityCheck

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

SpellImmunityCheck(NwGameObject, NwSpell?, bool)

Performs a spell immunity check.

public bool SpellImmunityCheck(NwGameObject target, NwSpell? spell = null, bool feedback = true)

Parameters

target NwGameObject

The target creature of the spell.

spell NwSpell

The spell to use for the check. If null, will auto-detect based on the current running spell script.

feedback bool

If true, will show feedback for the spell immunity check.

Returns

bool

True if the target is immune to the spell, otherwise false.