share/hedgewars/Data/Missions/Training/User_Mission_-_Teamwork.lua
changeset 4674 6c9d96d06800
parent 4664 debfdc340e68
child 5325 261b79ba22b1
--- a/share/hedgewars/Data/Missions/Training/User_Mission_-_Teamwork.lua	Sat Dec 25 18:06:33 2010 +0300
+++ b/share/hedgewars/Data/Missions/Training/User_Mission_-_Teamwork.lua	Sat Dec 25 18:07:34 2010 +0300
@@ -65,7 +65,7 @@
 	SpawnUtilityCrate(2567,1768,amJetpack)
 	SpawnAmmoCrate(1251,1466,amDrill)
 
-	ShowMission(loc("Codename: Teamwork"), loc("by mikade"), loc("- Eliminate Unit 3378 |- Feeble Resistance must survive"), 0, 0)
+	ShowMission(loc("Codename: Teamwork"), loc("by mikade"), loc("- Eliminate Unit 3378 |- Feeble Resistance must survive") .. loc("|- Mines Time:") .. " " .. 0 .. " " .. loc("sec"), 0, 0)
 
 end
 
@@ -107,13 +107,13 @@
 	end
 
 	if (gear == enemy) and (GameOver == false) then
-		ShowMission(loc("Codename: Teamwork"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0);
-	elseif (gear == player) or (gear == p2) then
+		ShowMission(loc("Codename: Teamwork"), loc("MISSION SUCCESSFUL"), loc("Congratulations!"), 0, 0)
+		GameOver = true
+	elseif  ( ((gear == player) or (gear == p2)) and (GameOver == false)) then
 		ShowMission(loc("Codename: Teamwork"), loc("MISSION FAILED"), loc("Oh no! Just try again!"), -amSkip, 0)
 		GameOver = true
 		SetHealth(p2,0)
 		SetHealth(player,0)
-
 	end
 
 end