hedgewars/uGearsUtils.pas
changeset 11872 f6d33710baff
parent 11853 6a0d6b00dac8
child 12053 475a1289f940
--- a/hedgewars/uGearsUtils.pas	Sun Oct 02 18:30:15 2016 +0200
+++ b/hedgewars/uGearsUtils.pas	Mon Oct 03 14:10:25 2016 -0400
@@ -175,7 +175,9 @@
                                 Gear^.Active:= true;
                                 if Gear^.Kind <> gtFlame then FollowGear:= Gear
                                 end;
-                            if ((Mask and EXPLPoisoned) <> 0) and (Gear^.Kind = gtHedgehog) and (Gear^.Hedgehog^.Effects[heInvulnerable] = 0) and (Gear^.State and gstHHDeath = 0) then
+                            if ((Mask and EXPLPoisoned) <> 0) and (Gear^.Kind = gtHedgehog) and
+                                (Gear^.Hedgehog^.Effects[heInvulnerable] = 0) and (Gear^.Hedgehog^.Effects[heFrozen] = 0) and
+                                (Gear^.State and gstHHDeath = 0) then
                                 Gear^.Hedgehog^.Effects[hePoisoned] := 5;
                             end;