Skip to content

Commit 1eaf7ec

Browse files
committed
games: Fix opponent headers for Snakes and Ladders
1 parent 28540dd commit 1eaf7ec

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/ps/games/snakesladders/index.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,9 @@ export class SnakesLadders extends BaseGame<State> {
146146
ctx.header = `${this.turn} rolled a ${this.state.lastRoll}...`;
147147
} else if (side === this.turn) {
148148
ctx.header = this.$T('GAME.YOUR_TURN');
149-
} else if (side) {
150-
ctx.header = this.$T('GAME.WAITING_FOR_OPPONENT');
151-
ctx.dimHeader = true;
152149
} else if (this.turn) {
153-
const current = this.players[this.turn];
154-
ctx.header = this.$T('GAME.WAITING_FOR_PLAYER', { player: `${current.name}${this.sides ? ` (${this.turn})` : ''}` });
150+
ctx.header = this.$T('GAME.WAITING_FOR_PLAYER', { player: this.players[this.turn].name });
151+
if (side) ctx.dimHeader = true;
155152
}
156153
return render.bind(this.renderCtx)(ctx);
157154
}

0 commit comments

Comments
 (0)