One way is to have any unit that is supposed to give the hero health when it dies have a Loot of the type Effect, and have the effect be a Search Area with a validator that looks for units with the ability to get health from nearby dead units, and have the search effect apply a modify unit affect giving it health.
I made a buff that gives every enemy nearby a death buff.
If a unit with the death buff dies it triggers a healing effect on the caster of the death buff, which is my hero.
You don't even need a validator for it (wouldn't work anyway if you got multiple heroes with that ability), but you can select the owner of that buff and have the buffs stack.
Does anyone know how to create a buff that restores health every time an enemy unit dies nearby?
I'm stuck at how to detect a unit's death.
If possible I want to restrict myself to using the Data Editor. With triggers it would be easier, but more messy..
Thanks in advance
PS: Nevermiiiiiind
How did you do it?
One way is to have any unit that is supposed to give the hero health when it dies have a Loot of the type Effect, and have the effect be a Search Area with a validator that looks for units with the ability to get health from nearby dead units, and have the search effect apply a modify unit affect giving it health.
I made a buff that gives every enemy nearby a death buff.
If a unit with the death buff dies it triggers a healing effect on the caster of the death buff, which is my hero.
You don't even need a validator for it (wouldn't work anyway if you got multiple heroes with that ability), but you can select the owner of that buff and have the buffs stack.
Ah, nice solution :)