share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua
changeset 10290 42efccba0711
parent 9831 afa4e3e04cc5
child 11692 68eddcdc9f26
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Thu Jun 12 20:47:11 2014 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon01.lua	Thu Jun 12 21:25:39 2014 +0200
@@ -360,7 +360,7 @@
 	elseif GetHealth(minion3.gear) then
 		AnimSay(minion3.gear, loc("The boss has fallen! Retreat!"), SAY_SHOUT, 6000)
 	end
-	ParseCommand("teamgone " .. teamB.name)
+	DismissTeam(teamB.name)
 	AnimCaption(hero.gear, loc("Congrats! You made them run away!"), 6000)
 	AnimWait(hero.gear,5000)
 
@@ -377,7 +377,7 @@
 function minionsDeath(gear)
 	-- do staffs here
 	AnimSay(professor.gear, loc("I may lost this battle, but I haven't lost the war yet!"), SAY_SHOUT, 6000)
-	ParseCommand("teamgone " .. teamC.name)
+	DismissTeam(teamC.name)
 	AnimCaption(hero.gear, loc("Congrats! You won!"), 6000)
 	AnimWait(hero.gear,5000)