hedgewars/uTeams.pas
changeset 9685 7d925e82e572
parent 9656 18422d205080
child 9720 453a1c29b7e4
equal deleted inserted replaced
9683:a342837fc875 9685:7d925e82e572
   526             if Hedgehogs[i].GearHidden <> nil then
   526             if Hedgehogs[i].GearHidden <> nil then
   527                 RestoreHog(@Hedgehogs[i]);
   527                 RestoreHog(@Hedgehogs[i]);
   528 
   528 
   529             if Gear <> nil then
   529             if Gear <> nil then
   530                 begin
   530                 begin
   531                 Gear^.Invulnerable:= false;
   531                 Gear^.Hedgehog^.Effects[heInvulnerable]:= 0;
   532                 Gear^.Damage:= Gear^.Health;
   532                 Gear^.Damage:= Gear^.Health;
   533                 Gear^.State:= (Gear^.State or gstHHGone) and (not gstHHDriven)
   533                 Gear^.State:= (Gear^.State or gstHHGone) and (not gstHHDriven)
   534                 end
   534                 end
   535             end
   535             end
   536 end;
   536 end;