share/hedgewars/Data/Missions/Campaign/A_Classic_Fairytale/backstab.lua
changeset 15029 09c63d4bcf53
parent 15002 3ed1cbd31754
child 15054 c59bdec25012
equal deleted inserted replaced
15028:20c80919d97d 15029:09c63d4bcf53
   733   AddAnim(afterChoiceAnim)
   733   AddAnim(afterChoiceAnim)
   734   AddFunction({func = AfterAfterChoiceAnim, args = {}})
   734   AddFunction({func = AfterAfterChoiceAnim, args = {}})
   735 end
   735 end
   736 
   736 
   737 function CheckChoiceRefuse()
   737 function CheckChoiceRefuse()
   738   return highJumped == true and StoppedGear(CurrentHedgehog)
   738   return GetHealth(CurrentHedgehog) and highJumped == true and StoppedGear(CurrentHedgehog)
   739 end
   739 end
   740 
   740 
   741 function CheckChoiceRunaway()
   741 function CheckChoiceRunaway()
   742   return CurrentHedgehog and band(GetState(CurrentHedgehog), gstHHDriven) ~= 0 and GetHogTeamName(CurrentHedgehog) == nativesTeamName and GetX(CurrentHedgehog) >= runawayX and GetY(CurrentHedgehog) >= runawayY and StoppedGear(CurrentHedgehog)
   742   return GetHealth(CurrentHedgehog) and band(GetState(CurrentHedgehog), gstHHDriven) ~= 0 and GetHogTeamName(CurrentHedgehog) == nativesTeamName and GetX(CurrentHedgehog) >= runawayX and GetY(CurrentHedgehog) >= runawayY and StoppedGear(CurrentHedgehog)
   743 end
   743 end
   744 
   744 
   745 function CheckChoiceRunawayAll()
   745 function CheckChoiceRunawayAll()
   746   for i= 1, 7 do
   746   for i= 1, 7 do
   747     local hog = natives[i]
   747     local hog = natives[i]