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