1
0
mirror of https://github.com/sui-feng-cb/AzurLaneAutoScript1.git synced 2026-07-04 03:56:27 +08:00

Fix: handle_info_bar before setting meowfficer buy amount

This commit is contained in:
LmeSzinc
2026-06-30 01:19:32 +08:00
parent e08db05071
commit 54f44a4583

View File

@@ -51,6 +51,12 @@ class MeowfficerBuy(MeowfficerBase):
logger.info(f'Current coins only enough to buy {count}')
self.meow_enter(MEOWFFICER_BUY_ENTER, check_button=MEOWFFICER_BUY)
# info_bar may covers OCR_MEOWFFICER_CHOOSE,
# and OCR_MEOWFFICER_CHOOSE may detected as 0 causing extra clickings
# info_bar is usually from the previous Dorm task or meowfficer fort
self.handle_info_bar()
self.ui_ensure_index(count, letter=MEOWFFICER_CHOOSE, prev_button=MEOWFFICER_BUY_PREV,
next_button=MEOWFFICER_BUY_NEXT, skip_first_screenshot=True)
return True