ASA, desert01: Disable hero control at first battle left from the hole, not right above it
authorWuzzy <Wuzzy2@mail.ru>
Sat, 01 Sep 2018 21:47:08 +0200
changeset 13738 ae22928f2b01
parent 13737 b83154cc8fad
child 13739 c6154fcb9420
ASA, desert01: Disable hero control at first battle left from the hole, not right above it
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua	Sat Sep 01 12:43:19 2018 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/desert01.lua	Sat Sep 01 21:47:08 2018 +0200
@@ -308,7 +308,7 @@
 end
 
 function onHeroAtFirstBattle(gear)
-	if not hero.dead and not heroIsInBattle and GetHealth(smuggler1.gear) and GetX(hero.gear) <= 1450 and GetX(hero.gear) > 80
+	if not hero.dead and not heroIsInBattle and GetHealth(smuggler1.gear) and GetX(hero.gear) <= 1233 and GetX(hero.gear) > 80
 			and GetY(hero.gear) <= GetY(smuggler1.gear)+5 and GetY(hero.gear) >= GetY(smuggler1.gear)-40 and
 			-- If hero is standing or at a rope
 			(StoppedGear(hero.gear) or GetGearElasticity(hero.gear) ~= 0) then