share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/journey.lua
changeset 12377 35e76306b016
parent 12268 2c8e7e73ef58
child 12378 b43c00e36369
equal deleted inserted replaced
12376:2b1dd699b371 12377:35e76306b016
   768 function DoTookGirder2()
   768 function DoTookGirder2()
   769   AddAmmo(dense, amGirder, 3)
   769   AddAmmo(dense, amGirder, 3)
   770 end
   770 end
   771 
   771 
   772 function CheckDensePit()
   772 function CheckDensePit()
   773   return GetY(dense) < 1250 and StoppedGear(dense)
   773   if GetHealth(dense) ~= nil then
       
   774     return GetY(dense) < 1250 and StoppedGear(dense)
       
   775   else
       
   776     return false
       
   777   end
   774 end
   778 end
   775 
   779 
   776 function DoDensePit()
   780 function DoDensePit()
   777   TurnTimeLeft = 0
   781   TurnTimeLeft = 0
   778   RestoreHedge(cyborg)
   782   RestoreHedge(cyborg)