fix(宝物抽卡): 心愿单错误
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user