From e517a34d96fe684a5498fe0a1a3ef5e6b010f591 Mon Sep 17 00:00:00 2001 From: luying Date: Thu, 21 Sep 2023 20:18:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix(=E5=AE=9D=E7=89=A9=E6=8A=BD?= =?UTF-8?q?=E5=8D=A1):=20=E4=BF=AE=E5=A4=8D=E5=BF=83=E6=84=BF=E5=8D=95?= =?UTF-8?q?=E8=B5=B0=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/activity/gachaService.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/game-server/app/services/activity/gachaService.ts b/game-server/app/services/activity/gachaService.ts index 355484fe8..811d6fc53 100644 --- a/game-server/app/services/activity/gachaService.ts +++ b/game-server/app/services/activity/gachaService.ts @@ -470,7 +470,10 @@ export class GachaPull { let { dic: { id: randHopePosition } } = getRandEelmWithWeight(gameData.gachaHope); if(randHopePosition > 0) { // 按玩家设置的心愿单塞 let hopeHero = this.player.getHopeHero(randHopePosition) - if(hopeHero > 0) gachaResult.setHero(hopeHero, 1); + if(hopeHero > 0) { + if (this.gachaType == GACHA_TYPE.NORMAL) gachaResult.setHero(hopeHero, 1); + if (this.gachaType == GACHA_TYPE.ARTIFACT) gachaResult.setItem(hopeHero, 1); + } } this.player.setUserHope(gachaResult.hid); // 设置心愿单中了没有 }