Skip to content

Commit

Permalink
fix(core): not counting Smeared Joker
Browse files Browse the repository at this point in the history
  • Loading branch information
kleinfreund committed Apr 11, 2024
1 parent 9bda527 commit 6ffd2a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utilities/getState.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ export function getState (initialState: InitialState): State {

const hasFourFingers = jokerSet.has('Four Fingers')
const hasShortcut = jokerSet.has('Shortcut')
const { playedHand, scoringCards: preliminaryScoringCards } = getHand(playedCards, { hasFourFingers, hasShortcut })
const hasSmearedJoker = jokerSet.has('Smeared Joker')
const { playedHand, scoringCards: preliminaryScoringCards } = getHand(playedCards, { hasFourFingers, hasShortcut, hasSmearedJoker })

const scoringCards = jokerSet.has('Splash') ? playedCards : preliminaryScoringCards

Expand Down

0 comments on commit 6ffd2a5

Please sign in to comment.