剿灭作战整周 0 场: annihilation_callback 忽略列表比较恒真误停 MAA

Open Beginner friendly
#6,154 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@brantzh6 is already working on this.

Since Nov 14, 2026.

  • #6155 by @brantzh6 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
backend

Research direction

The bug is in annihilation_callback in submodule/AlasMaaBridge/module/handler/handler.py, which compares the first list with != instead of checking membership. Read that callback and how maa_start() reacts to self.signal, then reproduce with a SubTaskError whose first is ["LastBattleStageName"]. Done when that recoverable error no longer stops the chain and the ignore list includes LastBattleStageName.

Written by the indexing model from the issue text.

Description

bug / 缺陷 Submodule: MAA / MAA插件

现象

方舟剿灭作战整周 0/6:MAA 每天「正常完成」MaaAnnihilation(NextRun 推进)但实际 0 场战斗,无报错。

根因

submodule/AlasMaaBridge/module/handler/handler.py 的 annihilation_callback 用
deep_get(d,'first') != ignoreErrorKeywords 做忽略判断。MAA(6.18+)进剿灭关卡先试
「上次作战」快捷方式,OCR 不到关卡名发一条可恢复 SubTaskError(first=["LastBattleStageName"])
再回退全导航成功点进关卡。但 1 元素列表 vs 2 元素列表比较恒 True,任何 SubTaskError
都置 self.signal,maa_start() 在点进关卡约 20ms 后 maa_stop() → TaskChainStopped、0 场。

证据

MAA asst.log 2026-10-17 04:04:52:=> Annihilation 后紧跟 Assistant::stop/TaskChainStopped,
无 EndOfActionAnnihilation;三账号整周剿灭 0/6。

修复

改成员匹配 any(keyword in first ...),并把 LastBattleStageName 加入忽略列表。

Dominant language
Python
Stars
9.8k
Forks
1.2k
Avg merge
18h 42m
Merged PRs (30d)
33

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from LmeSzinc/AzurLaneAutoScript

All issues in LmeSzinc/AzurLaneAutoScript

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.