Table of Contents

Method SpellAbsorptionUnlimitedCheck

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

SpellAbsorptionUnlimitedCheck(NwGameObject, NwSpell?, SpellSchool?, int?, bool)

Performs a spell absorption check for unlimited spell absorption effects (e.g. Globe of invulnerability).

public bool SpellAbsorptionUnlimitedCheck(NwGameObject target, NwSpell? spell = null, SpellSchool? spellSchool = null, int? spellLevel = 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.

spellSchool SpellSchool?

The spell school to check for. If null, uses the default spell school from the spell parameter.

spellLevel int?

The spell level. If null, uses the spell level from the spell parameter using the creature's caster class.

feedback bool

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

Returns

bool

True if the target successfully absorbed the spell, otherwise false.