Don't retribute people already dying due to something else
This commit is contained in:
parent
5217fa6fee
commit
106e7ed213
@ -4579,7 +4579,15 @@ def transition_day(cli, gameid=0):
|
|||||||
novictmsg = False
|
novictmsg = False
|
||||||
elif victim not in dead: # not already dead via some other means
|
elif victim not in dead: # not already dead via some other means
|
||||||
if victim in var.RETRIBUTION | var.ROLES["dullahan"]:
|
if victim in var.RETRIBUTION | var.ROLES["dullahan"]:
|
||||||
loser = random.choice(killers[victim]) if killers[victim] else None
|
loser = None
|
||||||
|
while killers[victim]:
|
||||||
|
loser = random.choice(killers[victim])
|
||||||
|
if loser in dead:
|
||||||
|
killers[victim].remove(loser)
|
||||||
|
continue
|
||||||
|
break
|
||||||
|
if loser in dead:
|
||||||
|
loser = None
|
||||||
if loser == "@wolves":
|
if loser == "@wolves":
|
||||||
wolves = var.list_players(var.WOLF_ROLES)
|
wolves = var.list_players(var.WOLF_ROLES)
|
||||||
for crow in var.ROLES["werecrow"]:
|
for crow in var.ROLES["werecrow"]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user