private void MakeMove(Planet ownedPlanet, Planet target, int shipCount, bool safe) { if (ownedPlanet != null && target != null) { int ships = shipCount; if (safe) { ships = Math.Min(Math.Min(shipCount, ownedPlanet.AttackForce), ownedPlanet.NumShips); } if (ships > 0) { ownedPlanet.RemoveShips(ships); if (target.IsMine) { //target.AddShips(shipCount); } else { target.RemoveShips(ships); } Me.ShipCountInBase -= ships; IssueOrder(ownedPlanet, target, ships); } else { } } }