--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua Wed May 29 13:21:23 2019 +0200
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua Fri May 31 11:10:01 2019 +0200
@@ -256,9 +256,10 @@
------------- other functions ---------------
function isHeroNextToRunner()
- if GetGearType(hero.gear) == gtHedgehog and GetGearType(runner.gear) == gtHedgehog and
+ if IsHogAlive(hero.gear) and IsHogAlive(runner.gear) and
math.abs(GetX(hero.gear) - GetX(runner.gear)) < 75 and
- math.abs(GetY(hero.gear) - GetY(runner.gear)) < 75 and StoppedGear(hero.gear) then
+ math.abs(GetY(hero.gear) - GetY(runner.gear)) < 75 and
+ StoppedGear(hero.gear) and StoppedGear(runner.gear) then
return true
end
return false