1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 00:28:20 +08:00

Fix: FLEET_BOSS not work as expected

fleet_2 should be treated fleet_boss if and only if fleet_2 exists AND FLEET_BOSS == 2
This commit is contained in:
noname94
2021-05-12 10:46:06 +09:00
parent e86d78ce81
commit 75c5a2906a

View File

@@ -58,14 +58,14 @@ class Fleet(Camera, AmbushHandler):
@property
def fleet_boss(self):
if self.config.FLEET_BOSS == 2 or self.config.FLEET_2:
if self.config.FLEET_BOSS == 2 and self.config.FLEET_2:
return self.fleet_2
else:
return self.fleet_1
@property
def fleet_boss_index(self):
if self.config.FLEET_BOSS == 2 or self.config.FLEET_2:
if self.config.FLEET_BOSS == 2 and self.config.FLEET_2:
return 2
else:
return 1