mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-15 22:19:18 +00:00
Fix: expected_end of enroute waypoints should be empty
This commit is contained in:
parent
b542c2a656
commit
bace33056c
@ -379,6 +379,8 @@ class MapControl(Combat, AimDetectorMixin):
|
||||
"""
|
||||
logger.hr('Clear item', level=1)
|
||||
waypoints = ensure_waypoints(waypoints)
|
||||
for point in waypoints[:-1]:
|
||||
point.expected_end = []
|
||||
end_point = waypoints[-1]
|
||||
end_point.expected_end.append('item')
|
||||
|
||||
@ -394,6 +396,8 @@ class MapControl(Combat, AimDetectorMixin):
|
||||
"""
|
||||
logger.hr('Clear enemy', level=1)
|
||||
waypoints = ensure_waypoints(waypoints)
|
||||
for point in waypoints[:-1]:
|
||||
point.expected_end = []
|
||||
end_point = waypoints[-1]
|
||||
end_point.expected_end.append('enemy')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user