From f4ca2d46c2a27f4c3fe9c4dc18ace8b3ce5be63c Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 3 Dec 2020 21:10:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E7=94=9F=E6=88=90=E5=8D=A1?= =?UTF-8?q?=E7=BB=84=E5=A4=B1=E8=B4=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/commands/SelectPetCommand.ts | 2 +- src/utils/game.util.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rooms/commands/SelectPetCommand.ts b/src/rooms/commands/SelectPetCommand.ts index 79cec39..b0ae9ca 100644 --- a/src/rooms/commands/SelectPetCommand.ts +++ b/src/rooms/commands/SelectPetCommand.ts @@ -44,7 +44,7 @@ export class SelectPetCommand extends Command = new Map(); let localId = 1; for (let [id, cfg] of numCfgMap) { - for (let i = 0; i < cfg.count; i++) { + for (let i = 0; i <= cfg.count; i++) { if (cfg.type_id == 1) { let effid = this.getRandomEffect(cfg.weightArr, effCfgMap, countMap); let card = new Card(localId ++, cfg.point, cfg.type_id, effid);