From bace33056c5969f540ff7aa20cfc301b075512ff Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sat, 18 Nov 2023 00:12:52 +0800 Subject: [PATCH] Fix: expected_end of enroute waypoints should be empty --- tasks/map/control/control.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/map/control/control.py b/tasks/map/control/control.py index 4d1bac58c..6b4222d58 100644 --- a/tasks/map/control/control.py +++ b/tasks/map/control/control.py @@ -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')