From 807776054238689344e7c8a641b36f9f170aede1 Mon Sep 17 00:00:00 2001 From: LmeSzinc Date: Tue, 12 May 2020 17:14:43 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8D=E6=8C=89=E8=88=B0?= =?UTF-8?q?=E9=98=9F=E5=87=BA=E7=94=9F=E7=82=B9=E5=AF=BB=E6=89=BE=E8=88=B0?= =?UTF-8?q?=E9=98=9F=E7=9A=84=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/map/fleet.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/module/map/fleet.py b/module/map/fleet.py index 6cf3e8d87..ce822647e 100644 --- a/module/map/fleet.py +++ b/module/map/fleet.py @@ -249,10 +249,11 @@ class Fleet(Camera, MapOperation, AmbushHandler): queue = queue.sort_by_camera_distance(self.camera) self.in_sight(queue[0], sight=(-1, 0, 1, 2)) grid = self.convert_map_to_grid(queue[0]) - if grid.predict_current_fleet(): - self.fleet_1 = queue[0].location - elif grid.predict_fleet(): - self.fleet_2 = queue[0].location + if grid.predict_fleet(): + if grid.predict_current_fleet(): + self.fleet_1 = queue[0].location + else: + self.fleet_2 = queue[0].location queue = queue[1:] def find_current_fleet(self):