Fix: Skip maa annihilation error task callback temporary (#4231)

* Fix: Skip maa annihilation error task callback temporary

* optimize error check

* optimize error check

* delete log
This commit is contained in:
mackerel-12138 2024-09-23 19:07:31 +08:00 committed by GitHub
parent f95f51b165
commit 51136dc2f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,8 +129,12 @@ class AssistantHandler:
self.callback_list.remove(self.penguin_id_callback)
def annihilation_callback(self, m, d):
if m == self.Message.SubTaskError:
self.signal = m
# Skip annihilation error task callback temporary
# https://github.com/MaaAssistantArknights/MaaAssistantArknights/issues/10623
ignoreErrorKeywords = ["FightSeries-Indicator","FightSeries-Icon"]
if m == self.Message.SubTaskError \
and deep_get(d, keys='first') != ignoreErrorKeywords:
self.signal = m
def fight_stop_count_callback(self, m, d):
if m == self.Message.SubTaskCompleted: