totalScore += getSetting("PREMIUM_SEVEN_TILES");
}
- /* Ѕcore player who pressed the button */
- if (!getSetting("SCORE_LAST_PLAYER")) {
- lastPlayer = getSetting("PlayerName");
- }
+ /* Ѕcore last player or the one who pressed the button */
+ const playerName = getSetting("SCORE_LAST_PLAYER") ? lastPlayer : getSetting("PlayerName");
myChoice(
format(_("{0} points will be added to:"), totalScore), {
score: parseInt(getScoreCell(name).textContent) + totalScore
}]);
},
- lastPlayer || currentPlayer || getSetting("PlayerName")
+ playerName || lastPlayer || currentPlayer || getSetting("PlayerName")
);
}