mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 13:59:02 +08:00
Fix: oil_check never triggerred due to opposite coalition_has_oil_icon
conditions
This commit is contained in:
parent
d1e00e1240
commit
62112bde73
@ -118,7 +118,7 @@ class Coalition(CoalitionCombat, CampaignEvent):
|
|||||||
self.config.Scheduler_Enable = False
|
self.config.Scheduler_Enable = False
|
||||||
return True
|
return True
|
||||||
# Oil limit
|
# Oil limit
|
||||||
if oil_check and self._coalition_has_oil_icon:
|
if oil_check:
|
||||||
if self.check_oil():
|
if self.check_oil():
|
||||||
logger.hr('Triggered stop condition: Oil limit')
|
logger.hr('Triggered stop condition: Oil limit')
|
||||||
self.config.task_delay(minute=(120, 240))
|
self.config.task_delay(minute=(120, 240))
|
||||||
@ -168,7 +168,7 @@ class Coalition(CoalitionCombat, CampaignEvent):
|
|||||||
self.coalition_map_exit(event)
|
self.coalition_map_exit(event)
|
||||||
raise
|
raise
|
||||||
|
|
||||||
if self.triggered_stop_condition(oil_check=True):
|
if self._coalition_has_oil_icon and self.triggered_stop_condition(oil_check=True):
|
||||||
self.coalition_map_exit(event)
|
self.coalition_map_exit(event)
|
||||||
raise ScriptEnd
|
raise ScriptEnd
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user