Fix: Wait current team shown up

This commit is contained in:
LmeSzinc 2024-05-13 12:38:55 +08:00
parent 3018449c9c
commit ee3cb4f5ef

View File

@ -60,12 +60,13 @@ class CombatTeam(UI):
logger.warning('Wait current team timeout')
break
current = self._get_team()
if current == index:
logger.attr('Team', current)
logger.info(f'Already selected to the correct team')
return False
else:
break
if current:
if current == index:
logger.attr('Team', current)
logger.info(f'Already selected to the correct team')
return False
else:
break
# Set team
retry = Timer(2, count=10)