Method SpellAbsorptionLimitedCheck
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
targetNwGameObjectThe target creature of the spell.
spellNwSpellThe spell to use for the check. If null, will auto-detect based on the current running spell script.
spellSchoolSpellSchool?The spell school to check for. If null, uses the default spell school from the spell parameter.
spellLevelint?The spell level. If null, uses the spell level from the spell parameter using the creature's caster class.
removeLevelsboolIf 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.
feedbackboolIf true, will show feedback for the spell absorption check.
Returns
- bool
True if the target successfully absorbed the spell, otherwise false.