Actually check if client goal is achieved, instead of just existence of an entry. (#77)

This commit is contained in:
CaitSith2 2020-04-27 06:13:33 -07:00 committed by GitHub
parent ad66909669
commit 495254addf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -791,7 +791,7 @@ async def process_client_cmd(ctx: Context, client: Client, cmd, args):
client.tags = args
elif cmd == 'GameFinished':
if (client.team, client.slot) not in ctx.client_game_state:
if ctx.client_game_state[client.team, client.slot] != CLIENT_GOAL:
finished_msg = f'{client.name} (Team #{client.team + 1}) has found the triforce.'
notify_all(ctx, finished_msg)
print(finished_msg)