Table of Contents

Method OnHitCastSpell

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

OnHitCastSpell(IPCastSpell, int)

Applies an on-hit cast spell effect using caster level.

public static ItemProperty OnHitCastSpell(IPCastSpell spell, int casterLevel)

Parameters

spell IPCastSpell

The spell to cast.

casterLevel int

The caster level.

Returns

ItemProperty

The created item property.

OnHitCastSpell(IPCastSpell, IPSpellLevel)

[Obsolete("Use the OnHitCastSpell(IPCastSpell, int) overload instead.")]
public static ItemProperty OnHitCastSpell(IPCastSpell spell, IPSpellLevel spellLevel)

Parameters

spell IPCastSpell
spellLevel IPSpellLevel

Returns

ItemProperty