Skip to content

Commit

Permalink
Kill message fix
Browse files Browse the repository at this point in the history
When killing a vampire at their unoccupied house while they're in the
stocks and you're a wolf, you were given the message as if you'd
attacked them in the stocks instead. Now we give the correct message as
the wolves have not yet invented teleportation
  • Loading branch information
skizzerz committed Dec 19, 2023
1 parent 4aa0c7d commit d0a0499
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 @@ -439,7 +439,7 @@ def on_night_death_message(self, evt: Event, var: GameState, victim: User, kille
if killer_role == "vampire":
victim.send(messages["pactbreaker_drained_dead"])
killer.send(messages["pactbreaker_drain_kill"].format(victim))
elif killer_role == "wolf" and victim not in self.active_players:
elif killer_role == "wolf" and victim not in self.active_players and self.night_kill_messages[killer] is VillageSquare:
victim.send(messages["pactbreaker_hunted"])
killer.send(messages["pactbreaker_hunter_square"].format(victim))
elif victim_role == "vampire" and self.night_kill_messages[killer] is get_home(var, victim):
Expand Down

0 comments on commit d0a0499

Please sign in to comment.