From 1d4c880157812646ae6bba4fa903d156ab4e6177 Mon Sep 17 00:00:00 2001 From: BauxiteAl <3117254928@qq.com> Date: Sat, 7 Oct 2023 22:16:47 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A9cardNameLength=E5=8F=AF=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E5=AD=97=E7=AC=A6=E4=B8=B2=E7=89=8C=E5=90=8D=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E8=BE=93=E5=87=BA=E7=89=8C=E5=90=8D=E5=AD=97=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game/game.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/game.js b/game/game.js index 4719ba8a9..498e8ba4f 100644 --- a/game/game.js +++ b/game/game.js @@ -56037,7 +56037,7 @@ //Get the card name length //获取此牌的字数 cardNameLength:(card,player)=>{ - const actualCardName=lib.actualCardName,name=get.translation(get.name(card,player)); + const actualCardName=lib.actualCardName,name=get.translation(typeof card=='string'?card:get.name(card,player)); return (actualCardName.has(name)?actualCardName.get(name):name).length; }, //Yingbian