equal
deleted
inserted
replaced
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 |