public void Attack(Detachment detachment) { if (Battleground.IsAdjacent(Detachment, detachment)) { Detachment.Attack(detachment); } else { (int X, int Y) = Battleground.Position(detachment); Move(X, Y); if (Battleground.IsAdjacent(Detachment, detachment)) { Detachment.Attack(detachment); } } }
public void Attack(Detachment detachment) => Detachment.Attack(detachment);