diff --git a/game-server/app/services/battle/rougeCollectService.ts b/game-server/app/services/battle/rougeCollectService.ts index 40bd2264e..53a069c47 100644 --- a/game-server/app/services/battle/rougeCollectService.ts +++ b/game-server/app/services/battle/rougeCollectService.ts @@ -186,10 +186,10 @@ export function formateCharasOrCards(params: RougelikeCharaPara[] | RougelikeCar export async function addCollection(roleId: string, sid: string, gameCode: string, arr: { type: number, id: number, addNum?: number }[]) { let collections: { type: number, id: number, num: number }[] = [], passiveCnt = 0; for (let { type, id, addNum = 1 } of arr) { - if (type == COLLECTION_TYPE.PASSIVE_CARD_SUM) continue; + if (type == COLLECTION_TYPE.PASSIVE_CARD_SUM || id == 0) continue; let collection = await RougelikeCollectionModel.addRec(roleId, type, id, gameCode, addNum); if (!collection || collection.num > 1) continue; - if (collection.num == 1) passiveCnt++; + if (type == COLLECTION_TYPE.PASSIVE_CARD && collection.num == 1) passiveCnt++; collections.push({ type, id, num: collection.num }); } if (passiveCnt > 0) {