Commit 700ffee3 authored by Lucille Fargeau's avatar Lucille Fargeau
Browse files

Retire return spécial dans attack quand coord à -1,-1

parent a230119d
......@@ -268,9 +268,6 @@ public class GameMediator {
public Pair<Integer, Ship> attack(Coordinate coordinate, boolean isTrueAttack, Player playerWhoPutTheMine) throws DataException, IOException, ClassNotFoundException {
if (this.currentGame != null) {
if(coordinate.getX()==-1 && coordinate.getY()==-1){
return new Pair(0,null);
Player player = this.currentGame.getCurrentPlayer();
System.out.println("ATTACK CURRENT PLAYER " + player.getLightPublicUser().getPlayerName());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment