From e2b62fecd809b6c3c8bbe217f56df96b2f915d16 Mon Sep 17 00:00:00 2001 From: rkfg Date: Thu, 3 Mar 2016 11:43:50 +0300 Subject: [PATCH] Prevent repeatable conceding (fixes #1526). --- Mage/src/main/java/mage/game/GameImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/game/GameImpl.java b/Mage/src/main/java/mage/game/GameImpl.java index 6d35aad001..5b39cac2a6 100644 --- a/Mage/src/main/java/mage/game/GameImpl.java +++ b/Mage/src/main/java/mage/game/GameImpl.java @@ -1192,7 +1192,7 @@ public abstract class GameImpl implements Game, Serializable { @Override public synchronized void concede(UUID playerId) { Player player = state.getPlayer(playerId); - if (player != null) { + if (player != null && !player.hasLost()) { logger.debug("Player " + player.getName() + " concedes game " + this.getId()); fireInformEvent(player.getLogName() + " has conceded."); player.concede(this);