🐞 fix(抽卡): 新武将抽卡会对应多个卡池

This commit is contained in:
luying
2023-03-21 21:03:01 +08:00
parent 918cc3415f
commit 4abd831f20

View File

@@ -66,6 +66,7 @@ export class GachaHandler {
let resultList: GachaResultIndb[] = [], heroInfo: CreateHeroParam[] = [], items: RewardInter[] = [], consume: ItemInter[] = [];
for(let { dic, min, max } of getDicGachas(dicGacha.gachaType, historyCount, count)) {
if(dicGacha.gachaType != GACHA_TYPE.NORMAL && dic.id != gachaId) continue;
// console.log('##########', dic, min, max)
let _count = max + 1 - min;
let gachaPull = new GachaPull(dic, { hope, floor, pickHero });