i want to make a spell that makes "when activated, all hero nearby caster will only take 50% damage, while the other 50% damage will be transferred (suffered) to the caster"
i made a trigger like this
and it's failed, after few try, i notice that "event response - damage taken" in real only respond for event using "damage taken", and damage taken can only be used in "spesific unit event", but the target is not in the map yet
can anyone help me solve this??
i made a trigger like this
Code:
event
a unit is attacked
condition
attacked unit equal to guarded_hero (a variable i created in a trigger with "a unit start the effect of ability", this variable refers to the hero nearby the caster)
action
unit - set life of guarded_hero to (life of guarded_hero + (1/2xdamage taken))
unit - set life of guardian (a variable refer to the caster of the skill) to (life of guarded hero - (1/2xdamage taken))
and it's failed, after few try, i notice that "event response - damage taken" in real only respond for event using "damage taken", and damage taken can only be used in "spesific unit event", but the target is not in the map yet
can anyone help me solve this??