How do I make a unit invulnerable for 3 seconds after being reincarnated by a Hero holding the item Ankh of Reincarnation? TY for any help!
The above code doesn't seem to work.
Code:
Reincarnation
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Item Reincarnation
Actions
Unit - Make (Triggering unit) Invulnerable
Set UnitVariable[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
Wait 3.00 seconds
Unit - Make UnitVariable[(Player number of (Owner of (Triggering unit)))] Vulnerable
The above code doesn't seem to work.