From 9fb61f75459c2c524a01915f6309e640a80ec931 Mon Sep 17 00:00:00 2001 From: zhl Date: Mon, 29 Mar 2021 10:39:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=8E=A9=E5=AE=B6=E6=AD=BB=E4=BA=A1=E5=90=8E?= =?UTF-8?q?=E7=BB=99=E7=8E=A9=E5=AE=B6=E8=A1=A5=E5=8D=A1=E7=9A=84=E6=B6=88?= =?UTF-8?q?=E6=81=AFsource=E6=94=B9=E4=B8=BA2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/RoomExtMethod.ts | 2 +- src/rooms/commands/PlayDeadCommand.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rooms/RoomExtMethod.ts b/src/rooms/RoomExtMethod.ts index 0607b51..93b25f9 100644 --- a/src/rooms/RoomExtMethod.ts +++ b/src/rooms/RoomExtMethod.ts @@ -70,7 +70,7 @@ Object.defineProperties(Room.prototype, { * @param dstplayer 目标玩家 * @param count 补多少张, 该值和max_count至少一个不为0 * @param max_count 补到多少张, 如果count和max_count都不为0, 则抽 Math.min(count, (max_count - 当前手牌数)) - * @param source 0: 正常抽卡, 1: 技能, 9: GM + * @param source 0: 正常抽卡, 1: 技能, 2: 玩家死亡 9: GM * @param fromplayer */ addCard: { diff --git a/src/rooms/commands/PlayDeadCommand.ts b/src/rooms/commands/PlayDeadCommand.ts index 67b1b38..28f47f1 100644 --- a/src/rooms/commands/PlayDeadCommand.ts +++ b/src/rooms/commands/PlayDeadCommand.ts @@ -18,7 +18,7 @@ export class PlayDeadCommand extends Command { // let amount = p.cards.size; // this.room.drawCardFromPlayer(p.id, player.id, amount); // 20201216 18:32 修改 - this.room.addCard(p.id, new GameEnv().teamDeadAddNum, 0); + this.room.addCard(p.id, new GameEnv().teamDeadAddNum, 0, 2); } break; }