DecrementRemainingSpellUses(object, int)

Decrease the number of spell uses of a particular spell for a given creature.

void DecrementRemainingSpellUses(
    object oCreature,
    int nSpell
);

Parameters

oCreature

Creature to decrement the remaining spell uses of a particular spell.

nSpell

SPELL_*


Description

Decreases the remaining number of spell uses per day for a creature by one. A creature must have at least one spell use for this function to work.



Remarks

Prior to patch 1.28 this function did not work properly with spontaneously cast spells.

As of patch 1.61, this function now works for all spells with metamagic feats applied to them but not on cleric domain spells.


Known Bugs

Still does not work on spells acquired through clerical domains.


Version

1.61

See Also

categories: Spells Functions
constants: SPELL_* Constants


 author: Charles Feduke, editor: Jasperre, additional contributor(s): Justin Koch
 Send comments on this topic.