未知卡池判空

This commit is contained in:
Aluxes 2024-01-09 21:37:34 +08:00
parent 85f5158239
commit 50b29402e6

View File

@ -152,13 +152,13 @@ let GachaData = {
let isUp = false let isUp = false
// 歪了多少个 // 歪了多少个
if (type === 'char') { if (type === 'char') {
if (!currVersion.hasOwnProperty("char5") || currVersion.char5.includes(ds.name)) { if (currVersion.char5?.includes(ds.name)) {
isUp = true isUp = true
} else { } else {
wai++ wai++
} }
} else { } else {
if (currVersion.weapon5.includes(ds.name)) { if (currVersion.weapon5?.includes(ds.name)) {
isUp = true isUp = true
} else { } else {
wai++ wai++