share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 10290 42efccba0711
parent 9306 c9978ada9a3d
child 12049 030464f34d47
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua	Thu Jun 12 20:47:11 2014 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua	Thu Jun 12 21:25:39 2014 +0200
@@ -617,9 +617,9 @@
 
 function DoDeployedDead()
   ShowMission(loc("Backstab"), loc("Brutus"), loc("You have failed to save the tribe!"), 0, 6000)
-  ParseCommand("teamgone " .. loc("Natives"))
-  ParseCommand("teamgone " .. loc("Tribe"))
-  ParseCommand("teamgone " .. loc("011101001"))
+  DismissTeam(loc("Natives"))
+  DismissTeam(loc("Tribe"))
+  DismissTeam(loc("011101001"))
   TurnTimeLeft = 0
 end
 
@@ -662,8 +662,8 @@
 
 function DoKilledOther()
   ShowMission(loc("Backstab"), loc("Brutus"), loc("You have killed an innocent hedgehog!"), 0, 6000)
-  ParseCommand("teamgone " .. loc("Natives"))
-  ParseCommand("teamgone " .. loc("Tribe"))
+  DismissTeam(loc("Natives"))
+  DismissTeam(loc("Tribe"))
   TurnTimeLeft = 0
 end
 
@@ -770,10 +770,10 @@
     end
   end
 
-  ParseCommand("teamgone " .. loc("Tribe"))
-  ParseCommand("teamgone " .. loc("Assault Team"))
-  ParseCommand("teamgone " .. loc("Reinforcements"))
-  ParseCommand("teamgone " .. loc("011101001"))
+  DismissTeam(loc("Tribe"))
+  DismissTeam(loc("Assault Team"))
+  DismissTeam(loc("Reinforcements"))
+  DismissTeam(loc("011101001"))
   TurnTimeLeft = 0
 end