hedgewars/uGearsUtils.pas
changeset 8632 b5ed76d2a1f9
parent 8560 134a098235fa
child 8751 4609823efc94
equal deleted inserted replaced
8631:796ed875aa95 8632:b5ed76d2a1f9
   180    King check should be in here instead of ApplyDamage since Tiy wants them kicked less
   180    King check should be in here instead of ApplyDamage since Tiy wants them kicked less
   181 *)
   181 *)
   182 i:= _1;
   182 i:= _1;
   183 if (CurrentHedgehog <> nil) and CurrentHedgehog^.King then
   183 if (CurrentHedgehog <> nil) and CurrentHedgehog^.King then
   184     i:= _1_5;
   184     i:= _1_5;
   185 if (Gear^.Hedgehog <> nil) and (Gear^.Hedgehog^.Effects[heFrozen] > 0) then i:=i*_0_2;
   185 if (Gear^.Hedgehog <> nil) and (Gear^.Hedgehog^.King or (Gear^.Hedgehog^.Effects[heFrozen] > 0)) then
   186 if (Gear^.Hedgehog <> nil) and (Gear^.Hedgehog^.King) then
       
   187     ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent * _0_5)
   186     ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent * _0_5)
   188 else
   187 else
   189     ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent)
   188     ModifyDamage:= hwRound(_0_01 * cDamageModifier * dmg * i * cDamagePercent)
   190 end;
   189 end;
   191 
   190