Skip to content

Commit c1593db

Browse files
committed
fix crash
1 parent 76b1871 commit c1593db

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/conventions/h-group/clue-interpretation/interpret-clue.js

+2
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,8 @@ export function interpret_clue(game, action) {
609609
inbetween_players.push(i % game.players.length);
610610
}
611611
for (const p of inbetween_players) {
612+
if (p === game.me.playerIndex)
613+
continue;
612614
const first_unclued = state.hands[p].sort((a, b) => b-a).filter(c => !state.deck[c].clued)[0];
613615
// the leftmost unclued card is either the same color as the clue, or the same rank
614616
if ((clue.type === CLUE.COLOUR && state.deck[first_unclued].suitIndex === clue.value) ||

0 commit comments

Comments
 (0)