integer
CreateGroup
local
then
then
set
then
DisplayTimedTextToPlayer
then
set
DisplayTimedTextToPlayer
endif
endif
then
call
then
DoNotSaveReplay
then
call
then
TriggerSleepAction
then
then
set
then
set
then
set
then
PauseGame
then
PauseGame
endif
ConvertGameSpeed
then
ExecuteFunc
then
ExecuteFunc
then
ExecuteFunc
then
ExecuteFunc
then
ExecuteFunc
then
then
ExecuteFunc
then
call
then
ExecuteFunc
then
ExecuteFunc
endif
GroupEnumUnitsSelected
loop
FirstOfGroup
exitwhen
GroupRemoveUnit
set
then
call
then
GetUnitDefaultMoveSpeed
then
AddHeroXP
then
AddHeroXP
then
GetHeroLevel
SetHeroLevel
else
UnitStripHeroLevel
endif
then
UnitModifySkillPoints
then
SetUnitState
then
SetUnitState
then
SetUnitState
then
SetUnitState
then
ExecuteFunc
then
ExecuteFunc
then
then
ExecuteFunc
ExecuteFunc
else
call
endif
then
call
then
ExecuteFunc
then
call
then
UnitResetCooldown
then
call
then
then
UnitApplyTimedLife
endif
then
UnitPauseTimedLife
then
UnitApplyTimedLife
else
UnitPauseTimedLife
endif
then
DisplayTimedTextToPlayer
then
DisplayTimedTextToPlayer
then
call
then
call
then
call
then
call
then
call
then
then
SetUnitInvulnerable
else
SetUnitInvulnerable
endif
then
then
PauseUnit
else
PauseUnit
endif
then
call
then
SetUnitOwner
then
RemoveUnit
then
SetUnitPathing
endif
endloop
