CompareLastSpellCast(int)

Determines if a spell is the same as the one previously cast by the creature.

int CompareLastSpellCast(
    int nSpell
);

Parameters

nSpell

SPELL_*


Description

Returns TRUE if nSpell is the last spell used, otherwise FALSE.

Used in conjuction with SetLastGenericSpellCast().



Remarks

Compares a spell with the last spell cast. Used internally by the AI so it doesn’t keep casting the same spell.


Requirements

#include "NW_I0_GENERIC"

Version

1.28

See Also

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


 author: Tom Cassiotis, editor: Lilac Soul, additional contributor(s): Lilac Soul
 Send comments on this topic.