mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 03:58:22 +08:00
Refactor: Correct fleet_2 and fleet_boss uses
This commit is contained in:
@@ -33,7 +33,7 @@ class Fleet(Camera, AmbushHandler):
|
||||
|
||||
@property
|
||||
def fleet_2(self):
|
||||
if self.config.FLEET_2 and self.config.FLEET_BOSS == 2:
|
||||
if self.config.FLEET_2:
|
||||
if self.fleet_current_index != 2:
|
||||
self.fleet_ensure(index=2)
|
||||
return self
|
||||
|
||||
@@ -508,7 +508,7 @@ class Map(Fleet):
|
||||
Returns:
|
||||
bool: if clear an enemy.
|
||||
"""
|
||||
if self.fleet_boss_index != 2:
|
||||
if not self.config.FLEET_2:
|
||||
return False
|
||||
for grid in grids:
|
||||
if self.fleet_at(grid=grid, fleet=2):
|
||||
|
||||
Reference in New Issue
Block a user