i did the reverse thing, i wantet not to give kill credit for killing a certain unit
have your behavior prevent death, and kill effect on fatal damage with caster source it shhould be possible to redirect it to the caster of the behavior
A programmer started to cuss
Because getting to sleep was a fuss
As he lay in his bed
Looping 'round in his head
Was: while (!asleep()) sheep++;

Vortexx2010 AuthorI have a reflect ability in my map that is a search area that applies a buff to enemy units with a negative life leach factor. When a unit essentially kills itself on the hero with this spell, the hero who applied the buff does not get credit.
I've tried modifying the Kill Credit field, but that's just changes who gets credit for kills that are made by the unit the buff is currently on. I've tried triggering the kill credit using Event:"unit dies" Condition: "triggering unit has behavior" but I can't find an action to give kill credit to the unit who applied the buff to the enemy. This doesn't even begin to touch on kill xp or money rewards.
Anyone have an idea of something I can try without having to significantly change the ability?
Lane Runner if you dare.