From 7694c239c686721b37a88a8ac86b5e6296a4ef2c Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 27 Jun 2022 18:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=BD=E5=8D=A1=EF=BC=9A=E6=B1=82=E8=B4=A4?= =?UTF-8?q?=E8=8B=A5=E6=B8=B4=E4=BF=9D=E5=BA=95=E4=B8=8D=E8=83=BD=E7=BB=99?= =?UTF-8?q?=E7=B4=AB=E5=B0=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/activity/gachaService.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game-server/app/services/activity/gachaService.ts b/game-server/app/services/activity/gachaService.ts index 6ab5527d6..e90a0496e 100644 --- a/game-server/app/services/activity/gachaService.ts +++ b/game-server/app/services/activity/gachaService.ts @@ -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;