I've created a trigger that's activated when a unit uses an ability.
The target unit of ability being cast, should get invulnerable after 10 seconds if their hit points is below 100%
pls help!
The target unit of ability being cast, should get invulnerable after 10 seconds if their hit points is below 100%
-
Events
-
Unit - A unit Finishes casting an ability
-
-
Conditions
-
(Ability being cast) Equal to Renew
-
-
Actions
-
Wait 10 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Integer((Percentage life of (Target unit of ability being cast))) Less than 100
-
-
Then - Actions
-
Unit - Make (Target unit of ability being cast) Invulnerable
-
Special Effect - Create a special effect attached to the chest of (Target unit of ability being cast) using Abilities\Spells\Undead\Cripple\CrippleTarget.mdl
-
Wait 5 seconds
-
Unit - Make (Target unit of ability being cast) Vunerable
-
Special Effect - Destroy (Last created special effect)
-
-
Else - Actions
-
Do Nothing
-
-
-
pls help!