mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 22:08:20 +08:00
Fix: Duplicate keyword argument when using EnemyPriority (fixed #1108)
This commit is contained in:
@@ -223,11 +223,12 @@ class Map(Fleet):
|
||||
|
||||
target = self.config.EnemyPriority_EnemyScaleBalanceWeight
|
||||
if target == 'S3_enemy_first':
|
||||
grids = self.select_grids(grids, strongest=True, **kwargs)
|
||||
kwargs['strongest'] = True
|
||||
elif target == 'S1_enemy_first':
|
||||
grids = self.select_grids(grids, weakest=True, **kwargs)
|
||||
else:
|
||||
grids = self.select_grids(grids, **kwargs)
|
||||
kwargs['weakest'] = True
|
||||
elif self.config.MAP_CLEAR_ALL_THIS_TIME:
|
||||
kwargs['strongest'] = True
|
||||
grids = self.select_grids(grids, **kwargs)
|
||||
|
||||
if grids:
|
||||
logger.hr('Clear roadblock')
|
||||
@@ -252,11 +253,12 @@ class Map(Fleet):
|
||||
|
||||
target = self.config.EnemyPriority_EnemyScaleBalanceWeight
|
||||
if target == 'S3_enemy_first':
|
||||
grids = self.select_grids(grids, strongest=True, **kwargs)
|
||||
kwargs['strongest'] = True
|
||||
elif target == 'S1_enemy_first':
|
||||
grids = self.select_grids(grids, weakest=True, **kwargs)
|
||||
else:
|
||||
grids = self.select_grids(grids, **kwargs)
|
||||
kwargs['weakest'] = True
|
||||
elif self.config.MAP_CLEAR_ALL_THIS_TIME:
|
||||
kwargs['strongest'] = True
|
||||
grids = self.select_grids(grids, **kwargs)
|
||||
|
||||
if grids:
|
||||
logger.hr('Avoid potential roadblock')
|
||||
|
||||
Reference in New Issue
Block a user