From cd3e9e074047f45ad73b546314e0e661adb06ba8 Mon Sep 17 00:00:00 2001 From: Cheng Jingxuan Date: Thu, 7 Mar 2024 18:32:25 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dfix=E4=B9=8Bfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/get/is.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noname/get/is.js b/noname/get/is.js index b01aeb4cd..3572cce09 100644 --- a/noname/get/is.js +++ b/noname/get/is.js @@ -132,7 +132,7 @@ export class Is extends Uninstantable { */ // @ts-ignore static virtualCard(card) { - return !card.isCard || (!("cards" in card) || !Array.isArray(card.cards) || card.cards.length === 0); + return card.isCard && (!("cards" in card) || !Array.isArray(card.cards) || card.cards.length === 0); } /** * 是否是转化牌 From 51ae0e6f4e509538a61e243ebd0f0f8670ba5dbd Mon Sep 17 00:00:00 2001 From: Cheng Jingxuan Date: Thu, 7 Mar 2024 18:36:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=8E=BB=E6=8E=89`isCard`=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/get/is.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noname/get/is.js b/noname/get/is.js index 3572cce09..143bde0f1 100644 --- a/noname/get/is.js +++ b/noname/get/is.js @@ -132,7 +132,7 @@ export class Is extends Uninstantable { */ // @ts-ignore static virtualCard(card) { - return card.isCard && (!("cards" in card) || !Array.isArray(card.cards) || card.cards.length === 0); + return (!("cards" in card) || !Array.isArray(card.cards) || card.cards.length === 0); } /** * 是否是转化牌