mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-22 00:35:34 +00:00
Fix: Redispatch directly if possible (#169)
This commit is contained in:
parent
db3e78498e
commit
9b853db955
@ -105,9 +105,6 @@ class Assignment(AssignmentClaim, SynthesizeUI):
|
||||
for assignment in assignments:
|
||||
if assignment in self.dispatched:
|
||||
continue
|
||||
if remain <= 0:
|
||||
yield assignment
|
||||
continue
|
||||
logger.hr('Assignment inlist', level=2)
|
||||
logger.info(f'Check assignment inlist: {assignment}')
|
||||
self.goto_entry(assignment)
|
||||
@ -120,6 +117,9 @@ class Assignment(AssignmentClaim, SynthesizeUI):
|
||||
self._get_assignment_time()
|
||||
continue
|
||||
# General assignments must be dispatchable here
|
||||
if remain <= 0:
|
||||
yield assignment
|
||||
continue
|
||||
self.dispatch(assignment, duration)
|
||||
remain -= 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user