mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-25 10:01:10 +00:00
Fix: Avoid double clicking COMBAT_TEAM_SUPPORT
This commit is contained in:
parent
ee3cb4f5ef
commit
ba9f2973d2
@ -107,18 +107,20 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo
|
|||||||
raise RequestHumanTakeover
|
raise RequestHumanTakeover
|
||||||
|
|
||||||
# Click
|
# Click
|
||||||
if support_character and self.appear(COMBAT_TEAM_SUPPORT):
|
if support_character and self.appear(COMBAT_TEAM_SUPPORT, interval=2):
|
||||||
if pre_set_team:
|
if pre_set_team:
|
||||||
self.team_set(team)
|
self.team_set(team)
|
||||||
pre_set_team = False
|
pre_set_team = False
|
||||||
continue
|
continue
|
||||||
self.support_set(support_character)
|
self.support_set(support_character)
|
||||||
|
self.interval_reset(COMBAT_TEAM_SUPPORT)
|
||||||
support_set = True
|
support_set = True
|
||||||
continue
|
continue
|
||||||
if support_set and self.appear(COMBAT_TEAM_PREPARE, interval=2):
|
if support_set and self.appear(COMBAT_TEAM_PREPARE, interval=2):
|
||||||
self.team_set(team)
|
self.team_set(team)
|
||||||
self.device.click(COMBAT_TEAM_PREPARE)
|
self.device.click(COMBAT_TEAM_PREPARE)
|
||||||
self.interval_reset(COMBAT_TEAM_PREPARE)
|
self.interval_reset(COMBAT_TEAM_PREPARE)
|
||||||
|
self.interval_reset(COMBAT_TEAM_SUPPORT)
|
||||||
continue
|
continue
|
||||||
if self.appear(COMBAT_TEAM_PREPARE):
|
if self.appear(COMBAT_TEAM_PREPARE):
|
||||||
self.interval_reset(COMBAT_PREPARE)
|
self.interval_reset(COMBAT_PREPARE)
|
||||||
|
Loading…
Reference in New Issue
Block a user