don't poison invul hogs
authorsheepluva
Thu, 25 Aug 2011 14:56:51 +0200
changeset 5681 5fc750c7f2b4
parent 5680 c0107c991dda
child 5682 06d5f561f772
don't poison invul hogs
hedgewars/uGears.pas
--- a/hedgewars/uGears.pas	Wed Aug 24 23:37:03 2011 -0400
+++ b/hedgewars/uGears.pas	Thu Aug 25 14:56:51 2011 +0200
@@ -1300,7 +1300,7 @@
                                 Gear^.Active:= true;
                                 if Gear^.Kind <> gtFlame then FollowGear:= Gear
                                 end;
-                            if ((Mask and EXPLPoisoned) <> 0) and (Gear^.Kind = gtHedgehog) then
+                            if ((Mask and EXPLPoisoned) <> 0) and (Gear^.Kind = gtHedgehog) and not Gear^.Invulnerable then
                                 Gear^.Hedgehog^.Effects[hePoisoned] := true;
                             end;