share/hedgewars/Data/Scripts/TargetPractice.lua
changeset 14675 8bd005067f4a
parent 14669 be8af70adf2c
child 14949 4c5fb1ee75b7
--- a/share/hedgewars/Data/Scripts/TargetPractice.lua	Mon Jan 21 21:06:55 2019 +0100
+++ b/share/hedgewars/Data/Scripts/TargetPractice.lua	Mon Jan 21 22:17:29 2019 +0100
@@ -265,7 +265,12 @@
 					SaveMissionVar("Won", "true")
 					AddCaption(loc("You have destroyed all targets!"), capcolDefault, capgrpGameState)
 					ShowMission(params.missionTitle, loc("Aiming practice"), loc("Congratulations! You have destroyed all targets within the time."), 0, 0)
-					PlaySound(sndVictory, player)
+					if shots <= scored then
+						-- No misses!
+						PlaySound(sndFlawless, player)
+					else
+						PlaySound(sndVictory, player)
+					end
 					SetEffect(player, heInvulnerable, 1)
 					SetState(player, bor(GetState(player), gstWinner))
 					time_goal = TurnTimeLeft