Fix tile score bug

This commit is contained in:
Laurent Mazet 2020-05-12 07:50:29 +02:00
parent fdbc21237c
commit 2bc2bb8233
1 changed files with 2 additions and 1 deletions

View File

@ -232,6 +232,7 @@ Game.prototype.toJSON = function () {
lang: this.lang,
langName: this.langName,
bag: this.bag,
letterValues: this.letterValues,
racks: this.racks,
scores: this.scores,
lastUpdated: this.lastUpdated.toISOString(),
@ -673,7 +674,7 @@ function handleCommand(cmdNumber, message, response) {
case "changeBoard": {
game.lang = cmd.lang || defaultLang;
game.reset();
reply(message, response, cmdNumber, {error: 0, boardLang: game.lang});
reply(message, response, cmdNumber, {error: 0, boardLang: game.lang, letterValues: game.letterValues});
break;
}