share/hedgewars/Data/Maps/ClimbHome/map.lua
changeset 10587 1dac23b5fe3b
parent 10585 eaccc445c473
child 10589 98ea597e5cd9
--- a/share/hedgewars/Data/Maps/ClimbHome/map.lua	Sun Nov 30 15:07:01 2014 -0500
+++ b/share/hedgewars/Data/Maps/ClimbHome/map.lua	Sun Nov 30 15:12:59 2014 -0500
@@ -109,7 +109,7 @@
     YouLost = false
     tauntNoo = false
     recordBroken = false
-    if CurrentHedgehog ~= nil then
+    if CurrentHedgehog ~= nil and CurrentHedgehog ~= dummyHog then
         SetGearPosition(CurrentHedgehog, 1951,32640)
         if not HogsAreInvulnerable then SetEffect(CurrentHedgehog,heInvulnerable,0) end
         AddVisualGear(19531,32640,vgtExplosion,0,false)
@@ -201,7 +201,8 @@
             DeleteGear(Cake)
             Cake = nil
         end
-        if gearIsInCircle(CurrentHedgehog,cx,cy,450) then
+
+        if GetHealth(Cake) < 999990 and gearIsInCircle(CurrentHedgehog,cx,cy,450) then
             FireBoom(cx,cy,200) -- todo animate
             DeleteGear(Cake)
             Cake = nil