Automatically allow spectator slots to see all hints.

This commit is contained in:
CaitSith2
2022-06-22 16:18:36 -07:00
parent df90ff4ddb
commit d20ade7ff8

View File

@@ -568,9 +568,9 @@ def notify_hints(ctx: Context, team: int, hints: typing.List[NetUtils.Hint], onl
concerns[hint.finding_player].append(data)
for slot, clients in ctx.clients[team].items():
if not clients or slot == hint.finding_player or slot in ctx.slot_set(hint.receiving_player) or \
all(["ShowAllHints" not in client.tags for client in clients]):
(ctx.games[slot] != "Archipelago" and all(["ShowAllHints" not in client.tags for client in clients])):
continue
for client in [client for client in clients if "ShowAllHints" in client.tags]:
for client in [client for client in clients if "ShowAllHints" in client.tags or ctx.games[slot] == "Archipelago"]:
all_hints[client].append(data)
# remember hints in all cases
if not hint.found: