share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua
changeset 15102 3a561db2a71c
parent 14953 ff4003a90ff8
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua	Wed May 29 13:21:23 2019 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/fruit03.lua	Fri May 31 11:10:01 2019 +0200
@@ -244,6 +244,9 @@
 end
 
 function onHeroWin(gear)
+	if (not IsHogAlive(hero.gear)) or (not StoppedGear(hero.gear)) then
+		return false
+	end
 	local enemies = enemiesOdd
 	for i=1,table.getn(enemiesEven) do
 		table.insert(enemies, enemiesEven[i])