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; }