抽卡:求贤若渴保底不能给紫将

This commit is contained in:
luying
2022-06-27 18:15:47 +08:00
parent b5c2005192
commit 7694c239c6

View File

@@ -297,7 +297,8 @@ export class GachaPull {
let isTarget = this.bigReward.id == gachaResult.contentId;
if(++historyCount >= dicFloorCount || isTarget) {
if(hasGetFloor) { // 已经获得过一次保底了, 不给,换个给
gachaResult.setContentId(getGachaContentOfHeroQuality(HERO_QUALITY_TYPE.PURPLE));
let notBigReward = this.percent.filter(cur => cur.id != this.bigReward.id);
gachaResult.setContentId(notBigReward[0].id, notBigReward[0].goodId);
} else {
gachaResult.setContentId(this.bigReward.id, this.bigReward.goodId);
hasGetFloor = true;