I want the base damage so that what this spell is not used or on autocast, the hero still has damage but if this spell is used it should overide the base damage leaving the spell damageErm, but do you still want to retain your hero base damage?
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 might as well use Shadow Strike with no decay damage but only initial.but what if the hero does not use autocast and manually clicks
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
could i do this and make shadow strike autocastable.Its alot simplerYou might as well use Shadow Strike with no decay damage but only initial.
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.
Exactly what Ayanami said, you said nothing near what Ayanami said.That's exactly what I told him. Read the thread, lol.
@ Arberden: You can't make non-autocastable spells autocastable.
Show the trigger. We can't know, because the function does work.How to do damage through triggers i tried Unit - Damage target but it did not work.