Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Hero Revival

Events


Unit - A unit Dies

Conditions

Actions


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




((Dying unit) is A Hero) Equal to True



Then - Actions




If (All Conditions are True) then do (Then Actions) else do (Else Actions)





If - Conditions






(Player number of (Owner of (Dying unit))) Less than or equal to 6





Then - Actions






Set TempPoint = ((Position of TopBarracksArray[(Player number of (Owner of (Dying unit)))]) offset by 256.00 towards (Facing of TopBarracksArray[(Player number of (Owner of (Dying unit)))]) degrees)





Else - Actions






Set TempPoint = ((Position of BottomBarracksArray[(Player number of (Owner of (Dying unit)))]) offset by 256.00 towards (Facing of BottomBarracksArray[(Player number of (Owner of (Dying unit)))]) degrees)




Wait ((Real((Hero level of (Dying unit)))) x 2.00) seconds




Hero - Instantly revive (Dying unit) at (TempPoint offset by (0.00, 0.00)), Show revival graphics




Unit - Set life of (Dying unit) to 50.00%




Unit - Set mana of (Dying unit) to 50.00%



Else - Actions
constant function ExtraTime takes nothing returns integer
return 2 //This is the number that the hero level is substracted with
endfunction
call ReviveHeroLoc(DyingUnit, Loc, true)
HappyTauron ehm ... Are you sure you removed all of the WEU files?
