# HG changeset patch # User nemo # Date 1321335799 18000 # Node ID e6d30db1e3b08a19b853b969a354d4ec07c4e6c5 # Parent 8b7e8ff1b16a57f2f865f05845a43d24d5fc0e01 Fix for issue #291 - this check should probably be in ApplyDamage though diff -r 8b7e8ff1b16a -r e6d30db1e3b0 hedgewars/GSHandlers.inc --- a/hedgewars/GSHandlers.inc Mon Nov 14 22:41:08 2011 -0500 +++ b/hedgewars/GSHandlers.inc Tue Nov 15 00:43:19 2011 -0500 @@ -4816,7 +4816,7 @@ if (tmp^.Kind = gtHedgehog) or (tmp^.Kind = gtMine) or (tmp^.Kind = gtExplosives) then begin //tmp^.State:= tmp^.State or gstFlatened; - ApplyDamage(tmp, CurrentHedgehog, tmp^.Health div 3, dsUnknown); + if not tmp^.Invulnerable then ApplyDamage(tmp, CurrentHedgehog, tmp^.Health div 3, dsUnknown); //DrawTunnel(tmp^.X, tmp^.Y - _1, _0, _0_5, cHHRadius * 6, cHHRadius * 3); tmp2:= AddGear(hwRound(tmp^.X), hwRound(tmp^.Y), gtHammerHit, 0, _0, _0, 0); tmp2^.IntersectGear:= tmp;