share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 14776 1aea457856e2
parent 14774 d0ad9fd923fd
child 14876 543729d313f5
equal deleted inserted replaced
14775:09d46ab83361 14776:1aea457856e2
   740 end
   740 end
   741 
   741 
   742 function CheckChoiceRunawayAll()
   742 function CheckChoiceRunawayAll()
   743   for i= 1, 7 do
   743   for i= 1, 7 do
   744     local hog = natives[i]
   744     local hog = natives[i]
   745     if hog ~= spyHog and GetX(hog) >= runawayX and GetY(hog) >= runawayY and StoppedGear(hog) then
   745     if hog ~= nil and GetHealth(hog) and hog ~= spyHog and GetX(hog) >= runawayX and GetY(hog) >= runawayY and StoppedGear(hog) then
   746       return true
   746       return true
   747     end
   747     end
   748   end
   748   end
   749   return false
   749   return false
   750 end
   750 end