GetLastGenericSpellCast()

Retrieves the last spell that was cast by the calling creature.

int GetLastGenericSpellCast();

Description

Returns a SPELL_* constant for the last spell used which was stored by calling SetLastGenericSpellCast().

Used in conjuction with SetLastGenericSpellCast() and CompareLastSpellCast().



Remarks

Uses the local variable name "NW_GENERIC_LAST_SPELL".

Used by BioWare core AI system so it doesn't keep casting the same spell.


Requirements

#include "x0_inc_generic"

Version

1.22

See Also

functions: CompareLastSpellCast | GetLastSpell | SetLastGenericSpellCast
categories: Core AI Functions
constants: SPELL_* Constants


 author: Tom Cassiotis, editors: John Shuell, Mistress