StarRailCopilot/tasks/combat/interact.py
2023-06-17 04:28:51 +08:00

15 lines
363 B
Python

from tasks.base.ui import UI
from tasks.combat.assets.assets_combat_interact import DUNGEON_COMBAT_INTERACT
class CombatInteract(UI):
def handle_combat_interact(self):
"""
Returns:
bool: If clicked.
"""
if self.appear_then_click(DUNGEON_COMBAT_INTERACT, interval=2):
return True
return False