From 3eb437fad642ccd526a6df716d0e31802132fd48 Mon Sep 17 00:00:00 2001 From: "Vgr E. Barry" Date: Fri, 4 Sep 2015 11:49:30 -0400 Subject: [PATCH] Make fallen angel become assassin in all cases Not just from getting bitten by alpha wolf, but also from turning from amnesiac, and also if in the default role rotation (this one currently doesn't affect any game modes, but in the future it might). --- src/wolfgame.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wolfgame.py b/src/wolfgame.py index 4e5df7c..7c973a7 100644 --- a/src/wolfgame.py +++ b/src/wolfgame.py @@ -6048,6 +6048,8 @@ def transition_night(cli): pm(cli, wolf, "\u0002{0}\u0002 is now a \u0002{1}\u0002!".format(amn, showrole)) elif amnrole == "turncoat": var.TURNCOATS[amn] = ("none", -1) + if amnrole == "fallen angel": + var.ROLES["assassin"].add(amn) debuglog("{0} REMEMBER: {1} as {2}".format(amn, amnrole, showrole)) if var.FIRST_NIGHT and chk_win(cli, end_game=False): # prevent game from ending as soon as it begins (useful for the random game mode) @@ -6951,6 +6953,7 @@ def start(cli, nick, chan, forced = False, restart = ""): amnroles.discard(nope) for amnesiac in var.ROLES["amnesiac"]: var.AMNESIAC_ROLES[amnesiac] = random.choice(list(amnroles)) + var.ROLES["assassin"].update(var.ROLES["fallen angel"]) # Handle doctor for doctor in var.ROLES["doctor"]: