diff --git a/game-server/app/servers/battle/handler/rougeHandler.ts b/game-server/app/servers/battle/handler/rougeHandler.ts index f26d89b79..9d1c5766d 100644 --- a/game-server/app/servers/battle/handler/rougeHandler.ts +++ b/game-server/app/servers/battle/handler/rougeHandler.ts @@ -770,7 +770,7 @@ export class RougeHandler { cardId = getRandEelmWithWeight(newCards).dic.cardId; } - handleAddFun.pushHolyCard(cardId); + if(cardId > 0) handleAddFun.pushHolyCard(cardId); } status = 1; diff --git a/game-server/app/services/battle/rougeCollectService.ts b/game-server/app/services/battle/rougeCollectService.ts index 12ba18580..40bd2264e 100644 --- a/game-server/app/services/battle/rougeCollectService.ts +++ b/game-server/app/services/battle/rougeCollectService.ts @@ -179,7 +179,7 @@ export function formateCharasOrCards(params: RougelikeCharaPara[] | RougelikeCar if (!params || params.length == 0) return result; const updateParams = params || []; if (type == ROUGE_LIKE_CARD_TYPE.CHARA) result.charas = updateParams.map(param => new CommonChara(param)); - else result.cards = updateParams.map(param => new CommonCard(param)); + else result.cards = updateParams.map(param => new CommonCard(param)).filter(cur => cur.cardId > 0); return result; }