mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
Actually check if client goal is achieved, instead of just existence of an entry. (#77)
This commit is contained in:
@@ -791,7 +791,7 @@ async def process_client_cmd(ctx: Context, client: Client, cmd, args):
|
|||||||
client.tags = args
|
client.tags = args
|
||||||
|
|
||||||
elif cmd == 'GameFinished':
|
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.'
|
finished_msg = f'{client.name} (Team #{client.team + 1}) has found the triforce.'
|
||||||
notify_all(ctx, finished_msg)
|
notify_all(ctx, finished_msg)
|
||||||
print(finished_msg)
|
print(finished_msg)
|
||||||
|
Reference in New Issue
Block a user