Skip to content

Commit

Permalink
棄牌選擇數量不對時應不可以發動棄牌
Browse files Browse the repository at this point in the history
  • Loading branch information
Parsons committed Jul 27, 2024
1 parent 2fb6de9 commit c026333
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/classes/MainPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ export default class MainPlayer extends Player {
this.checkBtnInstance = checkContainer
checkbtn.on('pointerdown', () => {
if (this.discardMode) {
if (this.discardCards.length < this.discardCount) return
this.discardMode = false
this.discardCardsAction(this.discardCards.map((card) => card.id))
this.handCards.forEach((card) => {
Expand Down

0 comments on commit c026333

Please sign in to comment.