Table of Contents

Method GetSpellUsesLeft

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

GetSpellUsesLeft(NwClass, NwSpell, MetaMagic, int)

Gets the number of remaining uses for a specific spell for this creature.

public int GetSpellUsesLeft(NwClass nwClass, NwSpell spell, MetaMagic metaMagic = MetaMagic.None, int domain = 0)

Parameters

nwClass NwClass

The spell caster class.

spell NwSpell

The spell to check for remaining uses.

metaMagic MetaMagic

The metamagic for the spell.

domain int

The domain level, if it is a domain level spell.

Returns

int

The number of spell uses remaining.