Fix: DUNGEON_COMBAT_INTERACT may slow to response

This commit is contained in:
LmeSzinc 2024-06-10 16:11:19 +08:00
parent 2b9e366468
commit 4138c4d9ca

View File

@ -2,6 +2,7 @@ from module.base.decorator import run_once
from module.exception import RequestHumanTakeover from module.exception import RequestHumanTakeover
from module.logger import logger from module.logger import logger
from tasks.combat.assets.assets_combat_finish import COMBAT_AGAIN, COMBAT_EXIT from tasks.combat.assets.assets_combat_finish import COMBAT_AGAIN, COMBAT_EXIT
from tasks.combat.assets.assets_combat_interact import DUNGEON_COMBAT_INTERACT
from tasks.combat.assets.assets_combat_prepare import COMBAT_PREPARE from tasks.combat.assets.assets_combat_prepare import COMBAT_PREPARE
from tasks.combat.assets.assets_combat_team import COMBAT_TEAM_PREPARE, COMBAT_TEAM_SUPPORT from tasks.combat.assets.assets_combat_team import COMBAT_TEAM_PREPARE, COMBAT_TEAM_SUPPORT
from tasks.combat.interact import CombatInteract from tasks.combat.interact import CombatInteract
@ -136,11 +137,13 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo
self.interval_reset(COMBAT_PREPARE) self.interval_reset(COMBAT_PREPARE)
trial += 1 trial += 1
continue continue
if self.handle_combat_interact(): if self.appear(DUNGEON_COMBAT_INTERACT):
self.map_A_timer.reset() if self.handle_combat_interact():
continue self.map_A_timer.reset()
if self.handle_ascension_dungeon_prepare(): continue
continue else:
if self.handle_ascension_dungeon_prepare():
continue
if self.handle_popup_confirm(): if self.handle_popup_confirm():
continue continue