hedgewars/uGearsUtils.pas
changeset 8792 af4ab297b2b7
parent 8763 988901d27abf
child 8833 c13ebed437cb
child 8947 e906ebd59612
--- a/hedgewars/uGearsUtils.pas	Thu Mar 21 10:26:43 2013 +0100
+++ b/hedgewars/uGearsUtils.pas	Tue Mar 26 18:52:42 2013 +0100
@@ -137,7 +137,7 @@
                                 Gear^.Active:= true;
                                 if Gear^.Kind <> gtFlame then FollowGear:= Gear
                                 end;
-                            if ((Mask and EXPLPoisoned) <> 0) and (Gear^.Kind = gtHedgehog) and (not Gear^.Invulnerable) then
+                            if ((Mask and EXPLPoisoned) <> 0) and (Gear^.Kind = gtHedgehog) and (not Gear^.Invulnerable) and ((Gear^.State and gstHHDeath) = 0) then
                                 Gear^.Hedgehog^.Effects[hePoisoned] := 1;
                             end;