diff --git a/src/server/game/gamemanager.js b/src/server/game/gamemanager.js index 8df5b942b..81a94c816 100644 --- a/src/server/game/gamemanager.js +++ b/src/server/game/gamemanager.js @@ -1223,7 +1223,8 @@ const gamemanager = (function() { if (!wincondition1.isGameConclusionDecisive(condition)) return false; // either resignation, time, or disconnect, or whatever nonsense they specified, none of these which the client can claim the win from (the server has to tell them) // Game conclusion is decisive... // We can't submit a move where our opponent wins - if (victor === color || victor === 'draw') return false; + const oppositeColor = math1.getOppositeColor(color); + if (victor === oppositeColor) return false; return true; }