share/hedgewars/Data/Scripts/Multiplayer/Continental_supplies.lua
changeset 13362 8a9a723eb185
parent 13360 e27540ad33bd
child 13363 544867ac1017
equal deleted inserted replaced
13361:aabec3d86139 13362:8a9a723eb185
    46 	end
    46 	end
    47 end
    47 end
    48 
    48 
    49 --Will end the turn + give escape time
    49 --Will end the turn + give escape time
    50 function EndTurnCS(seconds)
    50 function EndTurnCS(seconds)
       
    51 	-- Set attacked state to prevent “Boring” sound to be played
       
    52 	SetState(CurrentHedgehog, bor(GetState(CurrentHedgehog), gstAttacked))
    51 	--set escape time
    53 	--set escape time
    52 	TurnTimeLeft = GetAwayTime*10*seconds
    54 	TurnTimeLeft = GetAwayTime*10*seconds
    53 	if TurnTimeLeft > 0 then
    55 	if TurnTimeLeft > 0 then
    54 		Retreat(TurnTimeLeft, false)
    56 		Retreat(TurnTimeLeft, false)
    55 	end
    57 	end