Make a unit-targeting dummy spell, preferably based off of one that an AI would automatically use on an allied non-hero in some situation, like Rejuvenation. Give that to the hero.
Make a trigger that runs when a unit finishes casting an ability. Check to see that the ability cast is your dummy, and then check its current life and give the casting hero some percentage of that. Then, Explode or Kill the targeted unit. |