share/hedgewars/Data/Maps/ClimbHome/map.lua
changeset 10593 7d41b0446706
parent 10592 2da35f88db23
child 10598 9dd0f41d3244
equal deleted inserted replaced
10592:2da35f88db23 10593:7d41b0446706
   207         if y < cy-1500 then
   207         if y < cy-1500 then
   208             DeleteGear(Cake)
   208             DeleteGear(Cake)
   209             Cake = nil
   209             Cake = nil
   210         end
   210         end
   211 
   211 
   212         if GetHealth(Cake) < 999990 and gearIsInCircle(CurrentHedgehog,cx,cy,450) then
   212         if Cake ~= nil and GetHealth(Cake) < 999990 and gearIsInCircle(CurrentHedgehog,cx,cy,450) then
   213             FireBoom(cx,cy,200) -- todo animate
   213             FireBoom(cx,cy,200) -- todo animate
   214             DeleteGear(Cake)
   214             DeleteGear(Cake)
   215             Cake = nil
   215             Cake = nil
   216         end
   216         end
   217     end
   217     end