I want to make trigger that will reset the life of some unit type when he get low then 5000 hp without the skill Ankh and will do it to everybody with the same unit type
here is my two triggers
they work fine but not great the trigger miss some of the units and some dies and some get the trigger...
How Can I Make It To Work On Everybody?
here is my two triggers
Code:
Enter
Events
Unit - A unit enters (Playable map area)
Conditions
(Unit-type of (Triggering unit)) Equal to Elder Voidwalker [Level 26]
Actions
Unit - Set the custom value of (Triggering unit) to 1
Code:
Voidwalker Life
Events
Unit - A unit Is attacked
Conditions
(Unit-type of (Attacked unit)) Equal to Elder Voidwalker [Level 26]
(Life of (Attacked unit)) Less than or equal to 5000.00
(Custom value of (Triggering unit)) Equal to 1
Actions
Unit - Set the custom value of (Triggering unit) to 0
Unit - Make (Triggering unit) Invulnerable
Unit - Set life of (Triggering unit) to (Max life of (Triggering unit))
Special Effect - Create a special effect attached to the origin of (Triggering unit) using Abilities\Spells\Other\Awaken\Awaken.mdl
Set HeroRevive = (Last created special effect)
Wait 0.50 seconds
Unit - Make (Triggering unit) Vulnerable
Wait 1.50 seconds
Special Effect - Destroy HeroRevive
they work fine but not great the trigger miss some of the units and some dies and some get the trigger...
How Can I Make It To Work On Everybody?