# HG changeset patch # User nemo # Date 1417378379 18000 # Node ID 1dac23b5fe3b8bfeffb160405fd438f2da711713 # Parent dbb77726f0c619c31de9a05ee525be0d672f522b delay cake boom until it has walked a little bit. also fix accidental drowning of watergods in last commit diff -r dbb77726f0c6 -r 1dac23b5fe3b share/hedgewars/Data/Maps/ClimbHome/map.lua --- 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