merge Wuzzy's bluehogfix bookmark. note: there might be a cleaner fix...
authorsheepluva
Sun, 10 Jan 2016 21:14:06 +0100
changeset 11498 62da13a15aff
parent 11496 1010f5cc4881 (current diff)
parent 11497 806da449d355 (diff)
child 11501 df990633cb25
merge Wuzzy's bluehogfix bookmark. note: there might be a cleaner fix...
--- a/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua	Sun Jan 10 19:49:15 2016 +0100
+++ b/share/hedgewars/Data/Missions/Campaign/A_Space_Adventure/moon02.lua	Sun Jan 10 21:14:06 2016 +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