Fix: page_item may be detected as LEVEL_CONFIRM

This commit is contained in:
LmeSzinc 2023-12-12 13:29:12 +08:00
parent 7a1325c94e
commit 30dc58f646

View File

@ -7,7 +7,7 @@ from module.logger import logger
from module.ocr.ocr import Ocr
from tasks.base.assets.assets_base_main_page import ROGUE_LEAVE_FOR_NOW
from tasks.base.assets.assets_base_page import MAP_EXIT
from tasks.base.page import page_guide, page_main, page_rogue
from tasks.base.page import page_guide, page_item, page_main, page_rogue
from tasks.dungeon.keywords import DungeonList
from tasks.dungeon.keywords.dungeon import Simulated_Universe_World_1
from tasks.dungeon.state import OcrSimUniPoint
@ -314,7 +314,7 @@ class RogueEntry(RouteBase, RogueRewardHandler, RoguePathHandler, DungeonUI):
if self.is_page_rogue_main():
logger.info('At is_page_rogue_main()')
return True
if self.appear(LEVEL_CONFIRM):
if not self.ui_page_appear(page_item) and self.appear(LEVEL_CONFIRM):
logger.info('At LEVEL_CONFIRM')
return True
return False