From ea19b69eca8b946fd6a22a27f4f4aadb73ff9a2a Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 29 Dec 2020 11:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E5=8D=A1=E7=89=8C=E6=97=B6?= =?UTF-8?q?=E5=80=99,=20=E5=A6=82=E6=9E=9C=E6=97=A0=E6=B3=95=E7=94=9F?= =?UTF-8?q?=E6=88=90=E5=AF=B9=E5=BA=94=E7=9A=84=E5=8D=A1,=20=E5=88=99?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E8=BF=94=E5=9B=9E,=20=E5=B9=B6=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E9=94=99=E8=AF=AF=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/RoomExtMethod.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rooms/RoomExtMethod.ts b/src/rooms/RoomExtMethod.ts index 404c8ed..bf99114 100644 --- a/src/rooms/RoomExtMethod.ts +++ b/src/rooms/RoomExtMethod.ts @@ -187,7 +187,10 @@ Object.defineProperties(Room.prototype, { tmpCards.push(card); } } - + if (tmpCards.length == 0) { + error(`生成卡牌时, 无法获取对应的effect配置, ${dstplayer.id}, ${effectId}, ${realCount}`) + return 0; + } let sourcePlayer; if (typeof fromplayer == 'string') {