hedgewars/HHHandlers.inc
changeset 6244 23801d8b83d5
parent 6131 4e8816cf9459
child 6248 103bc8fd4f1b
equal deleted inserted replaced
6243:9777d802be1a 6244:23801d8b83d5
   179      Gear^.Hedgehog^ do
   179      Gear^.Hedgehog^ do
   180      begin
   180      begin
   181      if ((State and gstHHDriven) <> 0)and
   181      if ((State and gstHHDriven) <> 0)and
   182         ((State and (gstAttacked or gstHHChooseTarget)) = 0) and
   182         ((State and (gstAttacked or gstHHChooseTarget)) = 0) and
   183         (((State and gstMoving) = 0) or
   183         (((State and gstMoving) = 0) or
       
   184             (Power > 0) or
   184             (CurAmmoType = amTeleport) or 
   185             (CurAmmoType = amTeleport) or 
   185             // Allow attacks while moving on ammo with AltAttack
   186             // Allow attacks while moving on ammo with AltAttack
   186             ((CurAmmoGear <> nil) and ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0)) or
   187             ((CurAmmoGear <> nil) and ((Ammoz[CurAmmoGear^.AmmoType].Ammo.Propz and ammoprop_AltAttack) <> 0)) or
   187             ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_AttackInMove) <> 0)) and
   188             ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_AttackInMove) <> 0)) and
   188         ((TargetPoint.X <> NoPointX) or ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) = 0)) then
   189         ((TargetPoint.X <> NoPointX) or ((Ammoz[CurAmmoType].Ammo.Propz and ammoprop_NeedTarget) = 0)) then