1
0
mirror of https://github.com/0O0o0oOoO00/Alas.git synced 2026-05-14 14:19:25 +08:00

Fix: check self in first start for maa submodule

This commit is contained in:
LA_DI_DA
2024-08-25 12:19:20 +08:00
parent 3448e78a0d
commit 4654d2ed56

10
alas.py
View File

@@ -33,6 +33,14 @@ class AzurLaneAutoScript:
# Key: str, task name, value: int, failure count
self.failure_record = {}
self.class_name = self.__class__.__name__
self.is_azur = False
self.is_ark = False
if self.class_name == "AzurLaneAutoScript":
self.is_azur = True
elif self.class_name == "ArknightsAutoScript":
self.is_ark = True
@cached_property
def config(self):
try:
@@ -652,7 +660,7 @@ class AzurLaneAutoScript:
del_cached_property(self, 'config')
continue
if not self.device.app_is_running():
if self.is_azur and not self.device.app_is_running():
self.config.task_call('Restart')
self.is_first_task = False
continue