- Joined
- Sep 6, 2016
- Messages
- 2
Hi! Let me start with 'Sorry for grammar'. Also I'm new here and I hope i did everything with the thread alright
Anyway, I started to work a lot with triggering spells. This is the passive ability I made instead of passive lifesteal:
It's actually working as intended, every third hit deals bonus dmg versus living units and heals the attacker, but i realized that using 'A unit is attacked' event is not the best idea, but I can't find better solution. You may wonder why i added 'Wait 0.50 seconds' action. I did it because this event triggers after the unit WANTS to attack, not after it finishes an attack, so by adding 0.50 seconds I made it look almost perfectly fine. The problem is that you can abuse this ability by constantly clicking S while the unit wants to attack. The attack is stopped but this trigger starts, leading to healing and damaging a lot more than intended.
Is there any way to stop this? Different event? Or can I somehow wait until the unit is actually damaged by an attack? Thank you in advance for help

It's actually working as intended, every third hit deals bonus dmg versus living units and heals the attacker, but i realized that using 'A unit is attacked' event is not the best idea, but I can't find better solution. You may wonder why i added 'Wait 0.50 seconds' action. I did it because this event triggers after the unit WANTS to attack, not after it finishes an attack, so by adding 0.50 seconds I made it look almost perfectly fine. The problem is that you can abuse this ability by constantly clicking S while the unit wants to attack. The attack is stopped but this trigger starts, leading to healing and damaging a lot more than intended.
Is there any way to stop this? Different event? Or can I somehow wait until the unit is actually damaged by an attack? Thank you in advance for help
Last edited: