Fix: 修复战术学院收获

This commit is contained in:
LmeSzinc 2020-05-07 09:45:43 +08:00
parent 65de042dd3
commit 43b359464f
2 changed files with 3 additions and 2 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

View File

@ -6,7 +6,7 @@ from module.base.timer import Timer, time_range_active
from module.base.utils import area_offset, get_color, color_similar, color_similarity_2d from module.base.utils import area_offset, get_color, color_similar, color_similarity_2d
from module.handler.popup import PopupHandler from module.handler.popup import PopupHandler
from module.logger import logger from module.logger import logger
from module.reward.assets import TACTICAL_CLASS_START, REWARD_2 from module.reward.assets import *
from module.ui.assets import TACTICAL_CHECK from module.ui.assets import TACTICAL_CHECK
from module.ui.ui import UI, page_tactical, page_reward from module.ui.ui import UI, page_tactical, page_reward
@ -216,7 +216,8 @@ class RewardTacticalClass(UI, PopupHandler):
continue continue
if self.handle_popup_confirm(): if self.handle_popup_confirm():
continue continue
if self.appear(TACTICAL_CLASS_START, offset=(30, 30), interval=1): if self.appear(TACTICAL_CLASS_CANCEL, offset=(30, 30), interval=1) \
and self.appear(TACTICAL_CLASS_START, offset=(30, 30)):
self._tactical_books_choose() self._tactical_books_choose()
self.device.click(TACTICAL_CLASS_START) self.device.click(TACTICAL_CLASS_START)
continue continue