Skip to content

Commit

Permalink
fix night !kill in pactbreaker
Browse files Browse the repository at this point in the history
  • Loading branch information
skizzerz committed Nov 27, 2024
1 parent 5bb4b93 commit 5492be8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gamemodes/pactbreaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -494,12 +494,12 @@ def on_night_death_message(self, evt: Event, var: GameState, victim: User, kille
elif killer_role == "wolf":
victim.send(messages["pactbreaker_hunted"])
killer.send(messages["pactbreaker_hunter"].format(victim))
elif killer_role == "vigilante" and location is get_home(var, victim):
victim.send(messages["pactbreaker_shot"])
killer.send(messages["pactbreaker_shooter"].format(victim, victim_role))
elif killer_role == "vigilante" and location is VillageSquare:
elif killer_role == "vigilante" and victim not in self.active_players and location is VillageSquare:
victim.send(messages["pactbreaker_shot_stocks"])
killer.send(messages["pactbreaker_shooter_stocks"].format(victim, victim_role))
elif killer_role == "vigilante":
victim.send(messages["pactbreaker_shot"])
killer.send(messages["pactbreaker_shooter"].format(victim, victim_role))
else:
# shouldn't happen; indicates a bug in the mode
raise RuntimeError(f"Unknown night death situation ({killer_role}/{victim_role}/{location.name})")
Expand Down

0 comments on commit 5492be8

Please sign in to comment.