From 5625d0da4467ade69266718238f7d9937a75a805 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt <skizzerz@skizzerz.net> Date: Sat, 21 Dec 2024 21:06:59 -0700 Subject: [PATCH] PB fixes - Fix visiting streets while having no collected evidence --- src/gamemodes/pactbreaker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gamemodes/pactbreaker.py b/src/gamemodes/pactbreaker.py index 14f937a7..b68460dc 100644 --- a/src/gamemodes/pactbreaker.py +++ b/src/gamemodes/pactbreaker.py @@ -379,7 +379,7 @@ def on_night_kills(self, evt: Event, var: GameState): elif location is Streets and num_evidence == 3: # refute fake evidence that the visitor may have collected # if there's no fake evidence, fall back to giving a clue token - collected = functools.reduce(lambda x, y: x | y, self.collected_evidence[visitor].values()) + collected = functools.reduce(lambda x, y: x | y, self.collected_evidence[visitor].values(), set()) role_order = ("wolf", "villager", "vigilante") for role in role_order: for target in self.collected_evidence[visitor][role]: