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

Merge pull request #1951 from LmeSzinc/bug_fix

Bug fix
This commit is contained in:
LmeSzinc
2022-12-07 01:49:40 +08:00
committed by GitHub
17 changed files with 8 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
from module.base.timer import Timer
from module.base.utils import area_in_area
from module.base.utils import area_cross_area
from module.combat.assets import GET_ITEMS_1
from module.handler.assets import *
from module.handler.enemy_searching import EnemySearchingHandler
@@ -41,7 +41,7 @@ class MysteryHandler(StrategyHandler, EnemySearchingHandler):
"""
if not self.config.MAP_MYSTERY_MAP_CLICK:
button = MYSTERY_ITEM
if button is None or area_in_area(button.button, MYSTERY_ITEM.area, threshold=20):
if button is None or area_cross_area(button.button, MYSTERY_ITEM.area, threshold=5):
button = MYSTERY_ITEM
if self.appear(GET_ITEMS_1):