🐞 fix(学宫): 修改选择题奖励

This commit is contained in:
zhangxk
2023-10-19 13:51:53 +08:00
parent 3697a45499
commit c70495cf59
2 changed files with 3 additions and 2 deletions

View File

@@ -290,7 +290,8 @@ export class RougeEffect {
const { cardCode, cardId, useCount = 0, type } = cur;
const holyCardData = gameData.rougeHolyCard.get(cardId);
let tempUseCount = holyCardData?.useCount || 0;
if (tempUseCount > 0 && useCount > 0 && type == ROUGE_LIKE_CARD_TYPE.HOLY) canRandomCards.push(cur);
if (tempUseCount - useCount <= 0 && type == ROUGE_LIKE_CARD_TYPE.HOLY) canRandomCards.push(cur);
})
let randomCards = getRandEelm(canRandomCards, num);