Fix: Consider multiple rogue runs as separated tasks

This commit is contained in:
LmeSzinc 2024-05-08 18:42:21 +08:00
parent 09e675758c
commit 80d1fbf9e5

View File

@ -37,7 +37,6 @@ class Rogue(RouteLoader, RogueEntry):
self.config.task_call('Dungeon')
self.config.task_stop()
while 1:
# Run
success = self.rogue_once()
@ -59,9 +58,14 @@ class Rogue(RouteLoader, RogueEntry):
self.config.task_call('BattlePass')
self.config.task_stop()
# End
if not success:
if success:
logger.info('Rogue run success')
# Call rogue itself, so multiple rogue runs are considered as separated tasks
# which won't trigger failure count >= 3 when clearing 100 elites
self.config.task_call('Rogue')
else:
logger.info('Rogue run failed')
self.config.task_delay(server_update=True)
break
if __name__ == '__main__':