- Joined
- May 16, 2020
- Messages
- 660
Hi guys,
I want to create a spell which adds x% speed to a hero upon casting a single target spell. The speed can stack with itself and is based on how many enemies are currently affected by the spell. If less units are affected by the spell, the speed bonus should reduce. Essentially, it is Axe's Battle Hunger from Dota2:
Axe
My idea was the following:
- Upon casting the spell, the trigger checks how many units are in Group X
- The # of units in Group X determine the ability level of the speed ability (higher level = higher speed)
- Upon condition Y, which removes 1 unit from Group X, the buff should be altered to provide -1 level of the speed (I can't re-cast it with the adjusted level, otherwise the speed duration would re-new itself, which should not happen)
Is there a way to alter a buff once placed, without changing the duration? Or is there a better way to implement it?
I want to create a spell which adds x% speed to a hero upon casting a single target spell. The speed can stack with itself and is based on how many enemies are currently affected by the spell. If less units are affected by the spell, the speed bonus should reduce. Essentially, it is Axe's Battle Hunger from Dota2:
Axe
My idea was the following:
- Upon casting the spell, the trigger checks how many units are in Group X
- The # of units in Group X determine the ability level of the speed ability (higher level = higher speed)
- Upon condition Y, which removes 1 unit from Group X, the buff should be altered to provide -1 level of the speed (I can't re-cast it with the adjusted level, otherwise the speed duration would re-new itself, which should not happen)
Is there a way to alter a buff once placed, without changing the duration? Or is there a better way to implement it?