mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-09 18:39:04 +08:00
Fix: check once in combat_preparation
This commit is contained in:
parent
6f1bdf1315
commit
701807ec9f
@ -261,12 +261,15 @@ class Raid(MapOperation, RaidCombat, CampaignEvent):
|
|||||||
# if emotion_reduce:
|
# if emotion_reduce:
|
||||||
# self.emotion.wait(fleet_index)
|
# self.emotion.wait(fleet_index)
|
||||||
|
|
||||||
|
checked = False
|
||||||
for _ in self.loop():
|
for _ in self.loop():
|
||||||
if self.appear(BATTLE_PREPARATION, offset=(30, 20)):
|
if self.appear(BATTLE_PREPARATION, offset=(30, 20)):
|
||||||
if self.handle_combat_automation_set(auto=auto == 'combat_auto'):
|
if self.handle_combat_automation_set(auto=auto == 'combat_auto'):
|
||||||
continue
|
continue
|
||||||
if self._raid_has_oil_icon and self.triggered_stop_condition(oil_check=True, coin_check=True):
|
if not checked and self._raid_has_oil_icon:
|
||||||
self.config.task_stop()
|
checked = True
|
||||||
|
if self.triggered_stop_condition(oil_check=True, coin_check=True):
|
||||||
|
self.config.task_stop()
|
||||||
if self.handle_raid_ticket_use():
|
if self.handle_raid_ticket_use():
|
||||||
continue
|
continue
|
||||||
if self.handle_retirement():
|
if self.handle_retirement():
|
||||||
|
|||||||
@ -551,8 +551,8 @@ class UI(InfoHandler):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
# RPG event (raid_20240328)
|
# RPG event (raid_20240328)
|
||||||
# if self.appear_then_click(RPG_STATUS_POPUP, offset=(30, 30), interval=3):
|
if self.appear_then_click(RPG_STATUS_POPUP, offset=(30, 30), interval=3):
|
||||||
# return True
|
return True
|
||||||
# Hospital event (20250327)
|
# Hospital event (20250327)
|
||||||
# if self.appear_then_click(HOSIPITAL_CLUE_CHECK, offset=(20, 20), interval=2):
|
# if self.appear_then_click(HOSIPITAL_CLUE_CHECK, offset=(20, 20), interval=2):
|
||||||
# return True
|
# return True
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user