From c23dc63bd5ea05a4a26c1f2787a9cc4fe193ef27 Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 10 Oct 2023 20:47:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=AE=9D=E7=89=A9=E6=8A=BD=E5=8D=A1):=20?= =?UTF-8?q?=E5=BF=83=E6=84=BF=E5=8D=95=E9=94=99=E8=AF=AF?= 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 76d149e90..037d2da1b 100644 --- a/game-server/app/services/activity/gachaService.ts +++ b/game-server/app/services/activity/gachaService.ts @@ -470,7 +470,8 @@ export class GachaPull { private processHope() { if(this.gachaType != GACHA_TYPE.NORMAL && this.gachaType != GACHA_TYPE.ARTIFACT) return; for(let gachaResult of this.result.list) { - if(gachaResult.heroQuality != HERO_QUALITY_TYPE.GOLD) continue; // 只有橙将 + if(this.gachaType == GACHA_TYPE.NORMAL && gachaResult.heroQuality != HERO_QUALITY_TYPE.GOLD) continue; // 只有橙将 + if(this.gachaType == GACHA_TYPE.ARTIFACT && gachaResult.heroQuality != HERO_QUALITY_TYPE.UR) continue; // 只有橙将 let { dic: { id: randHopePosition } } = getRandEelmWithWeight(gameData.gachaHope); if(randHopePosition > 0) { // 按玩家设置的心愿单塞 let hopeHero = this.player.getHopeHero(randHopePosition)