share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua
branchspacecampaign
changeset 9514 b72e99bcc423
parent 9512 9686c9116020
child 9516 d46172a49215
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Sat Aug 10 20:44:26 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua	Sat Aug 10 21:08:39 2013 +0300
@@ -315,8 +315,8 @@
 		HogTurnLeft(hero.gear, true)
 		AddAmmo(green1.gear, amSwitch, 100)
 		AddEvent(onEscapeWin, {hero.gear}, escapeWin, {hero.gear}, 0)
-		local greenTeam = { green1, green2, green3, green4 }
-		for i=1,4 do
+		local greenTeam = { green2, green3, green4 }
+		for i=1,3 do
 			SetHogLevel(greenTeam[i].gear, 1)
 		end
 		AddAnim(dialog03)
@@ -380,6 +380,9 @@
 ------------- OTHER FUNCTIONS ---------------
 
 function startBattle()
+	if not chooseBattle then
+		SetHogLevel(green1.gear, 1)
+	end
 	AnimSwitchHog(yellow1.gear)
 	TurnTimeLeft = 0
 end