From 129f03d5fbdb7975132a40ca740f351b398ccf25 Mon Sep 17 00:00:00 2001 From: LmeSzinc Date: Thu, 16 Apr 2020 16:43:13 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8D=E8=B8=A9=E9=97=AE?= =?UTF-8?q?=E5=8F=B7=E5=87=BA=E8=BF=90=E8=BE=93=E8=88=B9,=20=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E4=B8=8D=E8=A7=A6=E5=8F=91=E5=9C=B0=E5=9B=BE=E6=89=AB?= =?UTF-8?q?=E6=8F=8F=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/map/fleet.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/module/map/fleet.py b/module/map/fleet.py index 0ef1b22b8..9fa393b40 100644 --- a/module/map/fleet.py +++ b/module/map/fleet.py @@ -65,6 +65,7 @@ class Fleet(Camera, MapOperation, AmbushHandler): location = location_ensure(location) self.in_sight(location, sight=(-3, 0, 3, 2)) grid = self.convert_map_to_grid(location) + result_mystery = '' while 1: self.ambush_color_initial() @@ -98,6 +99,7 @@ class Fleet(Camera, MapOperation, AmbushHandler): # arrived = True self.mystery_count += 1 result = 'mystery' + result_mystery = mystery # break if self.combat_appear(): @@ -150,7 +152,7 @@ class Fleet(Camera, MapOperation, AmbushHandler): self.map[location].wipe_out() self.map[location].is_fleet = True self.__setattr__('fleet_%s_location' % self.fleet_current_index, location) - if mystery == 'get_carrier': + if result_mystery == 'get_carrier': prev_enemy = self.map.select(is_enemy=True) self.full_scan(battle_count=self.battle_count, mystery_count=self.mystery_count, siren_count=self.siren_count, carrier_count=self.carrier_count, is_carrier_scan=True)