任务:修复任务无法达成bug

This commit is contained in:
luying
2021-04-25 17:18:55 +08:00
parent b5b1919a56
commit 7bb445693d
21 changed files with 79 additions and 52 deletions
+4 -2
View File
@@ -209,8 +209,10 @@ function getPoolByHope(hope: Hope[], qualtiy: number) {
let hopeMap = new Map<number, Hope>();
let hasGetHope: number[] = [];
for(let h of hope) {
hopeMap.set(h.id, h);
if(h.hasGet) hasGetHope.push(h.id);
if(h.hid > 0) {
hopeMap.set(h.id, h);
if(h.hasGet) hasGetHope.push(h.id);
}
}
let list = gameData.gachaHope.map(cur => {