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

Fix: Handle mysteries in strategy_open()

This commit is contained in:
LmeSzinc
2023-04-11 23:41:20 +08:00
parent 5105b4bfec
commit 06b07ca003
3 changed files with 22 additions and 12 deletions

View File

@@ -44,7 +44,7 @@ class MysteryHandler(StrategyHandler, EnemySearchingHandler):
if button is None or area_cross_area(button.button, MYSTERY_ITEM.area, threshold=5):
button = MYSTERY_ITEM
if self.appear(GET_ITEMS_1):
if self.appear(GET_ITEMS_1, offset=5):
logger.attr('Mystery', 'Get item')
if drop:
drop.add(self.device.image)