hedgewars/uGearsUtils.pas
changeset 8632 b5ed76d2a1f9
parent 8560 134a098235fa
child 8751 4609823efc94
--- a/hedgewars/uGearsUtils.pas	Sun Mar 03 14:58:58 2013 -0500
+++ b/hedgewars/uGearsUtils.pas	Sun Mar 03 19:43:01 2013 -0500
@@ -182,8 +182,7 @@
 i:= _1;
 if (CurrentHedgehog <> nil) and CurrentHedgehog^.King then
     i:= _1_5;
-if (Gear^.Hedgehog <> nil) and (Gear^.Hedgehog^.Effects[heFrozen] > 0) then i:=i*_0_2;
-if (Gear^.Hedgehog <> nil) and (Gear^.Hedgehog^.King) then
+if (Gear^.Hedgehog <> nil) and (Gear^.Hedgehog^.King or (Gear^.Hedgehog^.Effects[heFrozen] > 0)) then
     ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent * _0_5)
 else
     ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent)