🐞 fix(宝物抽卡): 宝物抽卡当抽中时未记录hasGet

This commit is contained in:
luying
2023-09-22 15:38:58 +08:00
parent a282568e66
commit 42832858a4

View File

@@ -475,7 +475,8 @@ export class GachaPull {
if (this.gachaType == GACHA_TYPE.ARTIFACT) gachaResult.setItem(hopeHero, 1);
}
}
this.player.setUserHope(gachaResult.hid); // 设置心愿单中了没有
if (this.gachaType == GACHA_TYPE.NORMAL) this.player.setUserHope(gachaResult.hid); // 设置心愿单中了没有
if (this.gachaType == GACHA_TYPE.ARTIFACT) this.player.setUserHope(gachaResult.id); // 设置心愿单中了没有
}
}