share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
changeset 14614 e7bc81b303f3
parent 14611 db163acf53d1
child 14617 bd15c8551318
equal deleted inserted replaced
14613:bca306a47060 14614:e7bc81b303f3
   320 	end
   320 	end
   321 	return false
   321 	return false
   322 end
   322 end
   323 
   323 
   324 function onHeroFleeFirstBattle(gear)
   324 function onHeroFleeFirstBattle(gear)
   325 	if GetHealth(hero.gear) and GetHealth(smuggler1.gear) and heroIsInBattle
   325 	if GetHealth(hero.gear) and GetHealth(smuggler1.gear)
       
   326 			and heroIsInBattle and ongoingBattle == 1
   326 			and not gearIsInCircle(smuggler1.gear, GetX(hero.gear), GetY(hero.gear), 1400, false)
   327 			and not gearIsInCircle(smuggler1.gear, GetX(hero.gear), GetY(hero.gear), 1400, false)
   327 			and StoppedGear(hero.gear) then
   328 			and StoppedGear(hero.gear) then
   328 		return true
   329 		return true
   329 	end
   330 	end
   330 	return false
   331 	return false