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)