Table of Contents

Method SpellAbsorptionLimitedCheck

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

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

Performs a spell absorption check for limited spell absorption effects (e.g. Spell Mantle).

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

removeLevels bool

If true, will remove the spell levels from the effect that would stop it, and remove the effect if 0 or fewer levels remain. If false, the effect is untouched.

feedback bool

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

Returns

bool

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