diff --git a/game/update.js b/game/update.js index 374e6f21f..2bbef6d9f 100644 --- a/game/update.js +++ b/game/update.js @@ -1,8 +1,7 @@ window.noname_update = { - version: "1.10.11.2", + version: "1.10.11.3", update: "NULL", //新版本更新文件较多,直接强制进行全量更新 changeLog: [ - "整合@Rintim @nonameShijian @copcap @PZ157 @mengxinzxz @lieren2023 的Pull Request", "bug修复", ], files: [], diff --git a/noname/library/element/player.js b/noname/library/element/player.js index 8288f7dc5..0fabfa39b 100644 --- a/noname/library/element/player.js +++ b/noname/library/element/player.js @@ -4524,7 +4524,7 @@ export class Player extends HTMLDivElement { if (typeof this.selectCard == "function") return false; if (this.complexCard || this.complexSelect || this.filterOk) return false; var cards = this.player.getCards(this.position); - if (cards.some(card => !this.filterCard(card, this.player))) return false; + if (cards.some(card => !this.filterCard(card, this.player, this))) return false; var num = cards.length; for (var i = 0; i < cards.length; i++) { if (!lib.filter.cardDiscardable(cards[i], this.player, this)) num--; @@ -4783,7 +4783,7 @@ export class Player extends HTMLDivElement { if (typeof this.selectCard == "function") return false; if (this.complexCard || this.complexSelect || this.filterOk) return false; var cards = this.player.getCards(this.position); - if (cards.some(card => !this.filterCard(card, this.player))) return false; + if (cards.some(card => !this.filterCard(card, this.player, this))) return false; return get.select(this.selectCard)[0] >= this.player.countCards(this.position); }; next.setContent("chooseCard");