Herodeath
Events
Unit - A unit Dies
Conditions
((Dying unit) is A Hero) Equal to True
Actions
Countdown Timer - Start HeroDeathTimer[(Player number of (Owner of (Dying unit)))] as a One-shot timer that will expire in (28.00 + (2.00 x (Real((Hero level of (Dying unit)))))) seconds
Countdown Timer - Create a timer window for (Last started timer) with title (Name of (Owner of (Dying unit)))
Wait until ((Remaining time for HeroDeathTimer[(Player number of (Owner of (Dying unit)))]) Equal to 0.00), checking every 1.00 seconds
Countdown Timer - Destroy (Last created timer window)
Camera - Pan camera for (Owner of (Dying unit)) to (Position of ReviveRegion[(Player number of (Owner of (Dying unit)))]) over 0.00 seconds
Hero - Instantly revive (Dying unit) at (Position of ReviveRegion[(Player number of (Owner of (Dying unit)))]), Show revival graphics