i create the passive spell that heal unit A when it kill unit B
)
ex: create 1 dummy, order dummy to kill the enemy
so i wanna ask can unit A get healed when the dummy kill unit B?
EDIT: actually there's nothing wrong about the triggers, i just make a example that it won't heal unit A if dummy kills unit B, so i need help to make the triggers WILL do it
-
Heal
-

Events
-


Unit - A unit Dies
-
-

Conditions
-


((Killing unit) has buff Troll Regeneration ) Equal to True
-
-

Actions
-


Set H_Kill_unit = (Killing unit)
-


Set H_Dying_unit = (Dying unit)
-


Set HealLife[1] = ((Life of H_Kill_unit) + ((Max life of H_Dying_unit) x 0.10))
-


Set HealLife[2] = ((Life of H_Kill_unit) + ((Max life of H_Dying_unit) x 0.20))
-


Set HealLife[3] = ((Life of H_Kill_unit) + ((Max life of H_Dying_unit) x 0.25))
-


Set HealMana[1] = ((Mana of H_Kill_unit) + ((Max mana of H_Dying_unit) x 0.30))
-


Set HealMana[2] = ((Mana of H_Kill_unit) + ((Max mana of H_Dying_unit) x 0.35))
-


Set HealMana[3] = ((Mana of H_Kill_unit) + ((Max mana of H_Dying_unit) x 0.37))
-


Unit - Set life of H_Kill_unit to HealLife[(Level of Troll Regeneration for H_Kill_unit)]
-


Unit - Set mana of H_Kill_unit to HealMana[(Level of Troll Regeneration for H_Kill_unit)]
-


Special Effect - Create a special effect attached to the origin of H_Kill_unit using Abilities\Spells\Human\Heal\HealTarget.mdl
-


Special Effect - Destroy (Last created special effect)
-
-
ex: create 1 dummy, order dummy to kill the enemy
so i wanna ask can unit A get healed when the dummy kill unit B?
EDIT: actually there's nothing wrong about the triggers, i just make a example that it won't heal unit A if dummy kills unit B, so i need help to make the triggers WILL do it
Last edited:





