but what if the hero does not use autocast and manually clicksWhen the hero is ordered to autocast the searing arrows, add it to a unit group. Likewise, remove the hero from said unit group when it unautocasts. This will allow you to track if the unit is auto casting or not.
Second, you will have to use a damage detection system to detect when the hero does damage. So, when it deals damage, check if it's in the autocast group. If so, set the hp of the triggering unit (attack target) to current hp + damage dealt. Then cause the hero to deal X damage to that unit.
You'll have to create another group then. Event - unit casts searing arrows, Action - add unit to group2. Then for your damage detection trigger, if damage source is in group2, do the same damage modification actions as I mentioned before, then remove it from group2. That last part is important, so that it only triggers once on a manual cast, rather than continuously like with autocast.but what if the hero does not use autocast and manually clicks
That's exactly what I told him. Read the thread, lol.You could always use frost arrows. Use a damage detection system to check if any unit receives damage with the frost arrow de-buff. Then, block all damage received and deal 30 damage by trigger.
Read carefully, it isn't the same. Mine uses buff detection, yours doesn't. Buff detection is much more reliable. Your method will fire even if the hero uses a spell to deal damage.That's exactly what I told him. Read the thread, lol.
@ Arberden: You can't make non-autocastable spells autocastable.