mirror of
https://github.com/babalae/bettergi-scripts-list.git
synced 2026-03-15 03:23:22 +08:00
fix(AutoPlan): 修复圣遗物秘境过滤逻辑中的索引错误 (#2979)
- 修正了幽境危战模式下秘境过滤条件的数组索引 - 将 runTypes 数组索引从 [1] 更改为 [0] 以匹配正确的运行类型 - 确保圣遗物秘境过滤器正确匹配用户配置的运行类型
This commit is contained in:
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user