1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-09 20:04:52 +00:00

fix(cafe): correct target name check

This commit is contained in:
2023-11-28 16:11:50 +08:00
parent 11d2a6ef7e
commit 39d00ac549
+1 -1
View File
@@ -226,7 +226,7 @@ def handle_invitation_status(status: InvitationStatus, main: ModuleBase) -> Invi
if main.appear(CAFE_INVITED):
logger.info('Invitation in cooldown')
return InvitationStatus.FINISHED
if invitation.target_name is None:
if invitation.choice != 'list_top' and invitation.target_name is None:
logger.warning('No student to be invited or all invitations failed')
return InvitationStatus.FINISHED
if main.appear(CHECK_MOMOTALK):