SpellUser

This object represent an in-game spell. Each instance represents a single spell that will be encapsulated inside some SpellUser.

Attributes

List<Spell> spells

The spells the user have.

Methods

void AddSpell(Spell spell)

Gives a new spell to the user

void CastSpell(int n)

Calls the ExecuteCommand(Spell.SpellCommand.Cast) of the n spells index

void IsUsingSpell()

Returns false if any spell that cannot be used with other spell are in Preparing state.