fix invulnerability check for shotgun
authornemo
Fri, 28 Nov 2014 21:30:36 -0500
changeset 10558 b574f04c9685
parent 10556 c4ca0fc00c3b
child 10568 5a867053add8
child 10569 a960f529d4bc
fix invulnerability check for shotgun
hedgewars/uGearsUtils.pas
--- a/hedgewars/uGearsUtils.pas	Fri Nov 28 14:58:33 2014 -0500
+++ b/hedgewars/uGearsUtils.pas	Fri Nov 28 21:30:36 2014 -0500
@@ -1038,7 +1038,7 @@
                         end;
                     if dmg > 0 then
                         begin
-                        if (Gear^.Kind <> gtHedgehog) or (t^.Hedgehog^.Effects[heInvulnerable] = 0) then
+                        if (t^.Kind <> gtHedgehog) or (t^.Hedgehog^.Effects[heInvulnerable] = 0) then
                             ApplyDamage(t, Gear^.Hedgehog, dmg, dsBullet)
                         else
                             Gear^.State:= Gear^.State or gstWinner;