share/hedgewars/Data/Scripts/TargetPractice.lua
changeset 12780 659ab77b52c0
parent 12425 f9cbb896967b
child 13034 fe9c12209f15
--- a/share/hedgewars/Data/Scripts/TargetPractice.lua	Thu Oct 26 22:49:39 2017 +0200
+++ b/share/hedgewars/Data/Scripts/TargetPractice.lua	Fri Oct 27 00:12:38 2017 +0200
@@ -215,6 +215,9 @@
 					PlaySound(sndVictory, player)
 					SetState(player, bor(GetState(player), gstWinner))
 					time_goal = TurnTimeLeft
+					-- Disable control
+					SetInputMask(0)
+					AddAmmo(player, params.ammoType, 0)
 				end
 			end
 		end