share/hedgewars/Data/Scripts/TargetPractice.lua
changeset 13034 fe9c12209f15
parent 12780 659ab77b52c0
child 13065 a297e06d1607
equal deleted inserted replaced
13033:a823de31240e 13034:fe9c12209f15
   211 			else
   211 			else
   212 				if not game_lost then
   212 				if not game_lost then
   213 					AddCaption(loc("You have destroyed all targets!"), 0xFFFFFFFF, capgrpGameState)
   213 					AddCaption(loc("You have destroyed all targets!"), 0xFFFFFFFF, capgrpGameState)
   214 					ShowMission(params.missionTitle, loc("Aiming practice"), loc("Congratulations! You have destroyed all targets within the time."), 0, 0)
   214 					ShowMission(params.missionTitle, loc("Aiming practice"), loc("Congratulations! You have destroyed all targets within the time."), 0, 0)
   215 					PlaySound(sndVictory, player)
   215 					PlaySound(sndVictory, player)
       
   216 					SetEffect(player, heInvulnerable, 1)
   216 					SetState(player, bor(GetState(player), gstWinner))
   217 					SetState(player, bor(GetState(player), gstWinner))
   217 					time_goal = TurnTimeLeft
   218 					time_goal = TurnTimeLeft
   218 					-- Disable control
   219 					-- Disable control
   219 					SetInputMask(0)
   220 					SetInputMask(0)
   220 					AddAmmo(player, params.ammoType, 0)
   221 					AddAmmo(player, params.ammoType, 0)