Squeekems
TH.net Regular
- Reaction score
- 11
[LJASS]InitialSpellLearned[/LJASS] is an array of booleans 0-5.
[LJASS]Initial Spell[/LJASS] is a custom ability based on [LJASS]Spell Book[/LJASS].
It should be clear what I am trying to do here. The problem is it does not give the unit the new ability.
[LJASS]Initial Spell[/LJASS] is a custom ability based on [LJASS]Spell Book[/LJASS].
Trigger:
- Set Initial Ability
- Events
- Unit - A unit Begins casting an ability
- Conditions
- InitialSpellLearned[((Player number of (Owner of (Triggering unit))) - 1)] Equal to False
- Actions
- Game - Display to (All players) the text: (Name of (Ability being cast))
- Unit - Remove Initial Spell from (Triggering unit)
- Unit - Add (Ability being cast) to (Triggering unit)
- Events
It should be clear what I am trying to do here. The problem is it does not give the unit the new ability.