share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
changeset 13162 9ec7d2fb9da7
parent 13099 071dcdf33f86
child 13583 141cdfe0f3ca
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Sun Mar 11 10:50:02 2018 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Sun Mar 11 11:01:27 2018 +0100
@@ -309,9 +309,9 @@
 				TurnTimeLeft = -1
 			end
 		end
-	elseif CurrentHedgehog == director.gear or CurrentHedgehog == doctor.gear then
+	elseif not onHeroDeath() and CurrentHedgehog == director.gear or CurrentHedgehog == doctor.gear then
 		EndTurn(true)
-	elseif (CurrentHedgehog == guard1.gear or CurrentHedgehog == guard2.gear) and guard1.keepTurning then
+	elseif not onHeroDeath() and (CurrentHedgehog == guard1.gear or CurrentHedgehog == guard2.gear) and guard1.keepTurning then
 		EndTurn(true)
 	end