So I had an idea for a hero with 4 spells. Each spell toggles on and off a certain aura where you can only have 1 aura at a time. Depending on which aura you have active, the hero gets another ability with some related effect.
For example, I have brilliance aura on and create a mana elemental that mana burns stuff. Then I switch to a health regeneration aura that gives me holy light. So on so forth.
Thing is, I would like it so that the aura switching is instant but the abilities save their cooldowns. I thought I might be able to manage this using 'disable ability for player' but it's not working. Also, the abilities don't switch.
So, what exactly does disabling a spell do and do you know a good way to do this?
Here is one example of a trigger I'm using.
The big problem I'm having is that when I cast to switch between auras, the spell doesn't change nor do I get a new aura. The first time I activate an aura, though, it works fine.
For example, I have brilliance aura on and create a mana elemental that mana burns stuff. Then I switch to a health regeneration aura that gives me holy light. So on so forth.
Thing is, I would like it so that the aura switching is instant but the abilities save their cooldowns. I thought I might be able to manage this using 'disable ability for player' but it's not working. Also, the abilities don't switch.
So, what exactly does disabling a spell do and do you know a good way to do this?
Here is one example of a trigger I'm using.
Trigger:
- Brilliance Aura
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Brilliance Aura
- Actions
- Unit - Remove Aura Channeling from (Casting unit)
- Player - Disable Exploding Implantations for (Owner of (Casting unit))
- Player - Disable Kinetic Bolt for (Owner of (Casting unit))
- Player - Disable Positive Focus for (Owner of (Casting unit))
- Player - Enable Summon Mana Orb for (Owner of (Casting unit))
- Hashtable - Save 0 as (Key Exploding) of (Key (Casting unit)) in HeroPowersHashtable
- Unit - Set level of Summon Mana Orb for (Casting unit) to (Level of (Ability being cast) for (Casting unit))
- Unit - Remove Alacrity Aura Spellbook from (Casting unit)
- Unit - Remove Hardiness Aura Spellbook from (Casting unit)
- Unit - Add Brilliance Aura Spellbook to (Casting unit)
- Player - Disable Brilliance Aura Spellbook for (Owner of (Casting unit))
- Unit - Set level of Brilliance Aura (Aura) for (Casting unit) to (Level of (Ability being cast) for (Casting unit))
- Hashtable - Save (Level of (Ability being cast) for (Casting unit)) as (Key AuraMasterBrilliance) of (Key (Owner of (Casting unit))) in HeroPowersHashtable
- Events
The big problem I'm having is that when I cast to switch between auras, the spell doesn't change nor do I get a new aura. The first time I activate an aura, though, it works fine.