mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Check COMBAT_AGAIN color prevent clicking before loaded
This commit is contained in:
parent
bc82e00df9
commit
5eabcbe22d
@ -162,7 +162,8 @@ class Combat(CombatInteract, CombatPrepare, CombatState, CombatTeam, CombatSuppo
|
||||
if callable(expected_end) and expected_end():
|
||||
logger.info(f'Combat execute ended at {expected_end.__name__}')
|
||||
break
|
||||
if self.appear(COMBAT_AGAIN):
|
||||
if (self.appear(COMBAT_AGAIN) and
|
||||
self.image_color_count(COMBAT_AGAIN, color=(227, 227, 228), threshold=221, count=50)):
|
||||
logger.info(f'Combat execute ended at {COMBAT_AGAIN}')
|
||||
break
|
||||
if self.is_in_main():
|
||||
|
Loading…
Reference in New Issue
Block a user