Hi, I would like to create ability that has <x> charges, each charge has it's own cooldown, and after it charge regenerates back. (similar to ember spirit's ulti fire remnant from Dota).
I want the charges cooldown to be seen on the spell icon, and while a charge is recharging and spell is cast I don't want it to reset the cd, but finish the one it had.
Example of spell (ill use shockwave to make it simple):
Shockwave has 3 charges:
If i cast it once, has 2 charges left, and 3rd charge starts "charge cooldown". If I cast it again, it has 1 charge left, but gains 1 more as soon as "charge cooldown" ends, (then it has 2 charges again), and starts a new charge cooldown to regenerate the last charge... etc...
If there are no charges left you can't cast shockwave.
I've seen similar spells like this, but none of them had what I want, each lacked a part of my requirement.
Can anyone help me ?
P.S. here's the map that came closest to what I want, but it has 2 problems:
1) charge cooldown resets if you recast the spell
2) unit spots moving when a charge is recharged (i believe this is only the case if you spend more than 1 charge)
I want the charges cooldown to be seen on the spell icon, and while a charge is recharging and spell is cast I don't want it to reset the cd, but finish the one it had.
Example of spell (ill use shockwave to make it simple):
Shockwave has 3 charges:
If i cast it once, has 2 charges left, and 3rd charge starts "charge cooldown". If I cast it again, it has 1 charge left, but gains 1 more as soon as "charge cooldown" ends, (then it has 2 charges again), and starts a new charge cooldown to regenerate the last charge... etc...
If there are no charges left you can't cast shockwave.
I've seen similar spells like this, but none of them had what I want, each lacked a part of my requirement.
Can anyone help me ?
P.S. here's the map that came closest to what I want, but it has 2 problems:
1) charge cooldown resets if you recast the spell
2) unit spots moving when a charge is recharged (i believe this is only the case if you spend more than 1 charge)