1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-22 02:29:16 +08:00

Fix: Duplicate keyword argument when using EnemyPriority

This commit is contained in:
LmeSzinc
2022-04-23 01:28:34 +08:00
parent 3f860c29e7
commit a048f04e64

View File

@@ -193,11 +193,10 @@ class Map(Fleet):
target = self.config.EnemyPriority_EnemyScaleBalanceWeight target = self.config.EnemyPriority_EnemyScaleBalanceWeight
if target == 'S3_enemy_first': if target == 'S3_enemy_first':
grids = self.select_grids(grids, strongest=True, **kwargs) kwargs['strongest'] = True
elif target == 'S1_enemy_first': elif target == 'S1_enemy_first':
grids = self.select_grids(grids, weakest=True, **kwargs) kwargs['weakest'] = True
else: grids = self.select_grids(grids, **kwargs)
grids = self.select_grids(grids, **kwargs)
if grids: if grids:
logger.hr('Clear enemy') logger.hr('Clear enemy')