I tested around a bit and DamageEvent (Bribes Damage Engine) does not become 1 if the attack misses (obviously, since no damage is being dealt).
I do not want the "attack" to be able to miss (evasion, high-ground and curse exists on my map), so I'll probably have to do it fully triggered on "A unit is attacked" event.
Ok. So my ability is along the lines of:
Channel to charge up the weapon. Attack to release the current charge.
Every 0.25 seconds charging costs X mana and stores a charge.
Each charge increases AoE, Damage, Armor Pierced.
Charge is kept until a basic attack is fired.
You can store up to X charges.
This is on a hero that are very likely to have various attack-speed buffs and items, at least later in the game.
Due to DamageEvent will not fire on miss/evade and I want it to hit even when "missed" (would feel bad to charge up for a few seconds and then miss!).
I will probably fire a projectile (dummy spell) on "A unit is attacked"-event and switch back to weapon 1 after a short duration (0.2 seconds?) and trigger the effect when the projectile hits.
This will fire regardless of animation cancel and will never miss.
Thanks for the help though, a few ideas and ways of doing things were ruled out and details on how to do this were thanks to you guys
