# HG changeset patch # User Periklis Ntanasis # Date 1376082041 -10800 # Node ID 54bfc44f9554ba7c44dc19625865e9999a1e1f22 # Parent ffab82d05785e8866c99b2fda10d7e4d9c420d75 fixed bug that make hog not able to move diff -r ffab82d05785 -r 54bfc44f9554 share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua --- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua Fri Aug 09 23:30:33 2013 +0300 +++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit01.lua Sat Aug 10 00:00:41 2013 +0300 @@ -14,6 +14,7 @@ local campaignName = loc("A Space Adventure") local missionName = loc("Fruit planet, The War!") local chooseToBattle = false +local previousHog = 0 -- dialogs local dialog01 = {} local dialog02 = {} @@ -174,15 +175,11 @@ function onNewTurn() if CurrentHedgehog == green1.gear then - TotalRounds = TotalRounds - 1 - if GetHealth(green2.gear) then - SwitchHog(green2.gear) - elseif GetHealth(green3.gear) then - SwitchHog(green3.gear) - elseif GetHealth(green4.gear) then - SwitchHog(green4.gear) - end + TotalRounds = TotalRounds - 2 + SwitchHog(previousHog) + TurnTimeLeft = 0 end + previousHog = CurrentHedghog getNextWave() end