fix check for event - guard attack spacecampaign
authorPeriklis Ntanasis <pntanasis@gmail.com>
Thu, 12 Sep 2013 23:20:32 +0300
branchspacecampaign
changeset 9619 f5fdb7770880
parent 9618 c937b532f8ec
child 9620 55c82fd210cb
fix check for event - guard attack
share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Thu Sep 12 23:08:45 2013 +0300
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/cosmos.lua	Thu Sep 12 23:20:32 2013 +0300
@@ -323,7 +323,7 @@
 	checkPointReached = 2
 	AddAnim(dialog02)
 	-- check if he was spotted by the guard
-	if guard1.turn then
+	if guard1.turn and GetX(hero.gear) > saucerX-150 then
 		guard1.keepTurning = false
 		AddAnim(dialog03)
 	end