Skip to content

Commit

Permalink
PB fixes
Browse files Browse the repository at this point in the history
- Fix visiting streets while having no collected evidence
  • Loading branch information
skizzerz committed Dec 22, 2024
1 parent 78edd01 commit 5625d0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gamemodes/pactbreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand Down

0 comments on commit 5625d0d

Please sign in to comment.