Fix: Check COMBAT_AGAIN color prevent clicking before loaded

This commit is contained in:
LmeSzinc 2024-05-13 14:59:48 +08:00
parent bc82e00df9
commit 5eabcbe22d

View File

@ -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():