share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua
changeset 15034 09c63d4bcf53
parent 15028 9a8c678df7d9
child 15035 2e89487540d8
--- a/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua	Wed May 22 10:45:35 2019 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/shadow.lua	Wed May 22 11:31:55 2019 +0200
@@ -809,7 +809,7 @@
     -- When close to cyborg, wait for a short time before accepting,
     -- to allow player to attack with melee weapons.
     checkAcceptTimer = checkAcceptTimer + 1
-    if checkAcceptTimer > 2000 and StoppedGear(dense) then
+    if checkAcceptTimer > 2000 and denseDead == false and StoppedGear(dense) then
       return true
     end
   else
@@ -826,7 +826,7 @@
 end
 
 function CheckConfront()
-  return cyborgAttacked and GetHealth(dense) and StoppedGear(dense)
+  return cyborgAttacked and denseDead == false and StoppedGear(dense)
 end
 
 function DoConfront()
@@ -854,7 +854,7 @@
   if stage == loseStage then
     return false
   end
-  return GetX(dense) > 1640 and StoppedGear(dense)
+  return denseDead == false and GetX(dense) > 1640 and StoppedGear(dense)
 end
 
 function DoNeedGirder()
@@ -874,7 +874,7 @@
   if stage == loseStage then
     return false
   end
-  return GetX(dense) > 2522 and StoppedGear(dense)
+  return denseDead == false and GetX(dense) > 2522 and StoppedGear(dense)
 end
 
 function DoNeedWeapons()