I'm trying to reset a cooldown for a single hero spell with this trigger:
Ignore the event/condition part, this is just part of the trigger. My problem is that it works until it gets to setting the spell level at the end. The ability is removed, then added back, but it remains unlearned for the hero and doesn't get changed back to its previous level. What am I doing wrong?
Trigger:
- Untitled Trigger 001
- Events
- Conditions
- Actions
- Set SoulOrb_Lvl = (Level of Soul Orbs for (Casting unit))
- Unit - Remove Soul Orbs from (Casting unit)
- Unit - Add Soul Orbs to (Casting unit)
- Unit - Set level of Soul Orbs for (Casting unit) to SoulOrb_Lvl
Ignore the event/condition part, this is just part of the trigger. My problem is that it works until it gets to setting the spell level at the end. The ability is removed, then added back, but it remains unlearned for the hero and doesn't get changed back to its previous level. What am I doing wrong?