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

Fix: check rest ap condition when cl1 cannot run (#2586)

Co-authored-by: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com>
This commit is contained in:
guoh064
2023-05-21 21:36:06 +08:00
committed by GitHub
parent f59ac5885f
commit 8610c5492b

View File

@@ -331,7 +331,7 @@ class OperationSiren(OSMap):
# When not running CL1 and use oil
keep_current_ap = True
check_rest_ap = True
if self.is_cl1_enabled:
if self.is_cl1_enabled and self.get_yellow_coins() >= self.config.OS_CL1_YELLOW_COINS_PRESERVE:
check_rest_ap = False
if not self.is_cl1_enabled and self.config.OpsiGeneral_BuyActionPointLimit > 0:
keep_current_ap = False