mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 21:35:24 +08:00
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:
@@ -129,8 +129,12 @@ class AssistantHandler:
|
|||||||
self.callback_list.remove(self.penguin_id_callback)
|
self.callback_list.remove(self.penguin_id_callback)
|
||||||
|
|
||||||
def annihilation_callback(self, m, d):
|
def annihilation_callback(self, m, d):
|
||||||
if m == self.Message.SubTaskError:
|
# Skip annihilation error task callback temporary
|
||||||
self.signal = m
|
# 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):
|
def fight_stop_count_callback(self, m, d):
|
||||||
if m == self.Message.SubTaskCompleted:
|
if m == self.Message.SubTaskCompleted:
|
||||||
|
|||||||
Reference in New Issue
Block a user