1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 17:57:01 +08:00

Fix: check once in combat_preparation

This commit is contained in:
sui-feng-cb
2026-02-05 21:43:38 +08:00
parent 6f1bdf1315
commit 701807ec9f
2 changed files with 7 additions and 4 deletions

View File

@@ -261,12 +261,15 @@ class Raid(MapOperation, RaidCombat, CampaignEvent):
# if emotion_reduce:
# self.emotion.wait(fleet_index)
checked = False
for _ in self.loop():
if self.appear(BATTLE_PREPARATION, offset=(30, 20)):
if self.handle_combat_automation_set(auto=auto == 'combat_auto'):
continue
if self._raid_has_oil_icon and self.triggered_stop_condition(oil_check=True, coin_check=True):
self.config.task_stop()
if not checked and self._raid_has_oil_icon:
checked = True
if self.triggered_stop_condition(oil_check=True, coin_check=True):
self.config.task_stop()
if self.handle_raid_ticket_use():
continue
if self.handle_retirement():