fix(AutoPlan): 修复圣遗物秘境过滤逻辑中的索引错误 (#2979)

- 修正了幽境危战模式下秘境过滤条件的数组索引
- 将 runTypes 数组索引从 [1] 更改为 [0] 以匹配正确的运行类型
- 确保圣遗物秘境过滤器正确匹配用户配置的运行类型
This commit is contained in:
云端客
2026-03-11 19:20:24 +08:00
committed by GitHub
parent c90918f2d2
commit 36136badee

View File

@@ -676,7 +676,7 @@ async function main() {
if (isStygianOnslaught) {
//圣遗物秘境名称
const holyRelicDomainNames = config.domainList.filter(item => !item.hasOrder).map(item => item.name);
const filter = list.find(item => item.runType === config.user.runTypes[1] && holyRelicDomainNames.includes(item.autoFight.domainName));
const filter = list.find(item => item.runType === config.user.runTypes[0] && holyRelicDomainNames.includes(item.autoFight.domainName));
if (filter) {
// 幽境危战添加秘境顺序前
list.forEach(item => {