We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6e80c1 commit 7b4285eCopy full SHA for 7b4285e
1 file changed
src/ps/games/splendor/index.ts
@@ -310,7 +310,6 @@ export class Splendor extends BaseGame<State> {
310
reservedId = card.id;
311
}
312
313
- this.receiveTokens({ [TOKEN_TYPE.DRAGON]: 1 }, playerData);
314
const willReceiveDragon = this.state.board.tokens[TOKEN_TYPE.DRAGON] > 0;
315
if (willReceiveDragon) this.receiveTokens({ [TOKEN_TYPE.DRAGON]: 1 }, playerData);
316
else this.room.privateSend(player.id, 'You reserved a card, but there were no Dragon tokens left to receive.' as ToTranslate);
0 commit comments