Fix: Sync MOB_MOVE_OFFSET to campaign_15_base.py (#4122)

This commit is contained in:
guoh064 2024-08-30 18:34:02 +08:00 committed by GitHub
parent 9abc30dbdb
commit 0f6a781c7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,6 +2,7 @@ from module.base.mask import Mask
from module.base.timer import Timer
from module.campaign.campaign_base import CampaignBase as CampaignBase_
from module.handler.assets import STRATEGY_OPENED
from module.handler.strategy import MOB_MOVE_OFFSET
from module.logger import logger
from module.map.map_grids import SelectedGrids
from module.map.utils import location_ensure
@ -163,7 +164,7 @@ class CampaignBase(CampaignBase_):
self.device.screenshot()
# End
if self.appear(STRATEGY_OPENED, offset=(120, 120)):
if self.appear(STRATEGY_OPENED, offset=MOB_MOVE_OFFSET):
break
# Click
if interval.reached() and self.is_in_strategy_mob_move():