hedgewars/GSHandlers.inc
changeset 2280 786fb5d8107d
parent 2278 28519f4f3f21
child 2281 3217f0d8c420
equal deleted inserted replaced
2279:ef19b949ad30 2280:786fb5d8107d
  1008 		exit
  1008 		exit
  1009 		end;
  1009 		end;
  1010 
  1010 
  1011 if (Gear^.Elasticity > Gear^.Friction)
  1011 if (Gear^.Elasticity > Gear^.Friction)
  1012 or ((Gear^.Message and gm_Attack) = 0)
  1012 or ((Gear^.Message and gm_Attack) = 0)
       
  1013 or ((HHGear^.State and gstHHDriven) = 0)
  1013 or (HHGear^.Damage > 0) then
  1014 or (HHGear^.Damage > 0) then
  1014 	begin
  1015 	begin
  1015 	with PHedgehog(Gear^.Hedgehog)^.Gear^ do
  1016 	with PHedgehog(Gear^.Hedgehog)^.Gear^ do
  1016 		begin
  1017 		begin
  1017 		State:= State and not gstAttacking;
  1018 		State:= State and not gstAttacking;