I am making a spell that works like this:
It can be turned on (like autocast), each time an enemy is hit with an attack, while the "autocast" is turned on, a dummy unit is created and will cast a spell on the enemy.
This spell is simple, it is a life-drain spell. It's basically a dummy spell, since I will do all the damage and life-giving in JASS/Triggers.
I need to count how many times it has been stacked on the unit.
The spell lasts 6 seconds, but it needs to be stackable in that time.
0 seconds - enemy unit hit first time... stacked once.
1.5 seconds - enemy unit hit second time... stacked twice.
6 seconds - first spell drops... stacked once.
7.5 seconds - second spell drops... no stacks
I had the thought of stripping the old buff from the unit and recasting a higher level spell for each stack... and recasting when it drops down too.
Bit complicated, any better ideas guys?
Thanks in advance!
It can be turned on (like autocast), each time an enemy is hit with an attack, while the "autocast" is turned on, a dummy unit is created and will cast a spell on the enemy.
This spell is simple, it is a life-drain spell. It's basically a dummy spell, since I will do all the damage and life-giving in JASS/Triggers.
I need to count how many times it has been stacked on the unit.
The spell lasts 6 seconds, but it needs to be stackable in that time.
0 seconds - enemy unit hit first time... stacked once.
1.5 seconds - enemy unit hit second time... stacked twice.
6 seconds - first spell drops... stacked once.
7.5 seconds - second spell drops... no stacks
I had the thought of stripping the old buff from the unit and recasting a higher level spell for each stack... and recasting when it drops down too.
Bit complicated, any better ideas guys?
Thanks in advance!