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:
10
alas.py
10
alas.py
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user