From 83ff76d661e082ae98c0a96d7fbb702b3dd0634c Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Sat, 20 Apr 2024 17:33:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E3=80=90=E5=AE=9A=E5=B7=9E?= =?UTF-8?q?=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/extra.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/character/extra.js b/character/extra.js index ac0fb3b9c..443860763 100755 --- a/character/extra.js +++ b/character/extra.js @@ -673,7 +673,7 @@ game.import("character", function () { return game.hasPlayer((current) => { if (current == player) return false; const total = current.countCards("ej"); - return total > 0 && num >= total + (get.mode() != "doudizhu" ? 1 : 0); + return total > 0 && num >= total; }); }, filterCard: true, @@ -682,7 +682,7 @@ game.import("character", function () { 1, Math.max( ...game.filterPlayer((i) => i != get.player()).map((i) => i.countCards("ej")) - ) + (get.mode() != "doudizhu" ? 1 : 0), + ), ]; }, check(card) { @@ -691,10 +691,10 @@ game.import("character", function () { filterTarget(card, player, target) { const num = target.countCards("ej"); if (!num) return false; - return ui.selected.cards.length == num + (get.mode() != "doudizhu" ? 1 : 0) && player != target; + return ui.selected.cards.length == num && player != target; }, filterOk() { - return ui.selected.cards.length == ui.selected.targets[0].countCards("ej") + (get.mode() != "doudizhu" ? 1 : 0); + return ui.selected.cards.length == ui.selected.targets[0].countCards("ej"); }, position: "he", lose: false, @@ -10840,8 +10840,6 @@ game.import("character", function () { shen_lusu_prefix: "神", dingzhou: "定州", dingzhou_info: - "出牌阶段限一次。你可以将X张牌交给一名场上有牌的角色,然后你获得其场上的所有牌(X为其场上的牌数+1)。", - dingzhou_info_doudizhu: "出牌阶段限一次。你可以将X张牌交给一名场上有牌的角色,然后你获得其场上的所有牌(X为其场上的牌数)。", tamo: "榻谟", tamo_info: