C
Cenoern
Guest
Greetings everyone. I'm working on a map right now, and one of my character classes is a Bard. Obviously a big portion of bards is their aura abilities, but I didn't want it to be a boring character to play. So, I am attempting to make the auras activated.
I made two abilities - Chords of Dissonance (Bard Ability) is based off of Thunder Clap, and is just being used as a dummy ability.
Chords of Dissonance (Bard Song) is the actual aura.
The idea is that when you cast the dummy ability, it disappears and is replaced by the aura for a set amount of time (in this case, 12 seconds.)
SongLevels[] is a size 3 array, and Chords of Dissonance is slated for SongLevels[0], so that I can preserve the correct level of dummy ability vs. aura.
Here's my trigger.
The abilities actually switch, and switch back. However, as soon as the ability is activated, the hero becomes unable to move or follow any commands. When the dummy ability returns, he is still unable to move, or even recast the spell. He's the only one being frozen in this manner - the rest of my heroes can cast abilities, move, and do all other normal functions. It is just the hero that freezes.
I think it might be something to do with removing/disabling/adding/enabling. Any help?
I made two abilities - Chords of Dissonance (Bard Ability) is based off of Thunder Clap, and is just being used as a dummy ability.
Chords of Dissonance (Bard Song) is the actual aura.
The idea is that when you cast the dummy ability, it disappears and is replaced by the aura for a set amount of time (in this case, 12 seconds.)
SongLevels[] is a size 3 array, and Chords of Dissonance is slated for SongLevels[0], so that I can preserve the correct level of dummy ability vs. aura.
Here's my trigger.
Code:
Chords of Dissonance
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to Chords of Dissonance (Bard Ability)
Actions
Set SongLevels[0] = (Level of (Ability being cast) for (Triggering unit))
Player - Disable Chords of Dissonance (Bard Ability) for (Owner of (Triggering unit))
Unit - Remove (Ability being cast) from (Triggering unit)
Player - Enable Chords of Dissonance (Bard Song) for (Owner of (Triggering unit))
Unit - Add Chords of Dissonance (Bard Song) to (Triggering unit)
Unit - Set Level of Chords of Dissonance (Bard Song) for (Triggering unit) to SongLevels[0]
Wait 12.00 seconds
Player - Disable Chords of Dissonance (Bard Song) for (Owner of (Triggering unit))
Unit - Remove Chords of Dissonance (Bard Song) from (Triggering unit)
Player - Enable Chords of Dissonance (Bard Ability) for (Owner of (Triggering unit))
Unit - Add Chords of Dissonance (Bard Ability) to (Triggering unit)
Unit - Set Level of Chords of Dissonance (Bard Ability) for (Triggering unit) to SongLevels[0]
The abilities actually switch, and switch back. However, as soon as the ability is activated, the hero becomes unable to move or follow any commands. When the dummy ability returns, he is still unable to move, or even recast the spell. He's the only one being frozen in this manner - the rest of my heroes can cast abilities, move, and do all other normal functions. It is just the hero that freezes.
I think it might be something to do with removing/disabling/adding/enabling. Any help?


