# HG changeset patch # User Wuzzy # Date 1448137385 -3600 # Node ID 806da449d355b3d9cb609c1912e1a6cbf18213ed # Parent fb7817a5c2b1d172c296ea45e2b3f7054365016e Fix Lua error spam in "Chasing the blue hog" after drowning both Crazy Runner and Hog Solo diff -r fb7817a5c2b1 -r 806da449d355 share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua --- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua Sat Nov 21 21:11:13 2015 +0100 +++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua Sat Nov 21 21:23:05 2015 +0100 @@ -184,7 +184,8 @@ ------------- other functions --------------- function isHeroNextToRunner() - if GetHealth(hero.gear) and math.abs(GetX(hero.gear) - GetX(runner.gear)) < 75 and + if GetGearType(hero.gear) == gtHedgehog and GetGearType(runner.gear) == gtHedgehog 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 return true end