From 7d4301636f339bfddeb8142d436f56acf99d8958 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Mon, 23 Nov 2020 22:45:30 +0100 Subject: [PATCH] reset list of moved tiles after scoring --- public/trivabble.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/trivabble.js b/public/trivabble.js index 4aaf1c0..3ee40ad 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1043,6 +1043,9 @@ if (Object.prototype.hasOwnProperty.call(player, "score")) { const scoreCell = getScoreCell(playerName); + if (scoreCell.textContent != player.score) { + currentTilePlayed = {}; + } scoreCell.textContent = player.score; blink(scoreCell); } -- 2.30.2