Table of Contents

Class OnSpellAction

Namespace
Anvil.API.Events
Assembly
NWN.Anvil.dll

Triggered when a creature queues the spell casting action.

public sealed class OnSpellAction : IEvent
Inheritance
OnSpellAction
Implements
Inherited Members
Extension Methods

Properties

Caster

Gets the creature casting the spell.

CasterLevel

Gets the caster level used for the spell.

ClassIndex

Gets the caster's class index used for the spell.

Domain

Gets the domain level used, if applicable.

Feat

Gets the feat used to cast the spell, if applicable.

IsAreaTarget

Gets whether the target is an area location.

IsFake

Gets whether the spell action is a fake cast.

IsInstant

Gets whether the spell is instant.

IsSpontaneous

Gets whether the spell is cast spontaneously.

MetaMagic

Gets the metamagic applied to the spell.

PreventSpellCast

Set to true to prevent the spell action from being queued.

ProjectilePath

Gets the projectile path type used, if applicable.

Result

Gets the result of queuing the spell action.

Spell

Gets the spell to be cast.

TargetObject

Gets the target object of the spell action, if applicable.

TargetPosition

Gets the targeted position.