hedgewars/HHHandlers.inc
changeset 4020 898a55b81d10
parent 4015 2897cf5730e7
child 4135 5be798ecafdc
equal deleted inserted replaced
4019:f2202355e5f6 4020:898a55b81d10
   877         PrvInactive:= false;
   877         PrvInactive:= false;
   878         AllInactive:= false;
   878         AllInactive:= false;
   879 
   879 
   880         if not PHedgehog(Gear^.Hedgehog)^.Team^.hasGone then
   880         if not PHedgehog(Gear^.Hedgehog)^.Team^.hasGone then
   881             begin
   881             begin
       
   882             PHedgehog(Gear^.Hedgehog)^.Effects[hePoisoned] := false;
   882             if PHedgehog(Gear^.Hedgehog)^.Effects[heResurrectable] then begin
   883             if PHedgehog(Gear^.Hedgehog)^.Effects[heResurrectable] then begin
   883                 ResurrectHedgehog(Gear);
   884                 ResurrectHedgehog(Gear);
   884             end else begin
   885             end else begin
   885                 Gear^.State:= Gear^.State or gstHHDeath;
   886                 Gear^.State:= Gear^.State or gstHHDeath;
   886                 Gear^.doStep:= @doStepHedgehogDead;
   887                 Gear^.doStep:= @doStepHedgehogDead;