Fix corner case with multiple pipers
This commit is contained in:
parent
1591655c68
commit
28dc0a8e14
@ -5722,6 +5722,7 @@ def transition_night(cli):
|
|||||||
random.shuffle(pl)
|
random.shuffle(pl)
|
||||||
pl.remove(piper)
|
pl.remove(piper)
|
||||||
for charmed in var.CHARMED:
|
for charmed in var.CHARMED:
|
||||||
|
if charmed in pl: # corner case: if there are multiple pipers and a piper is charmed, the piper will be in var.CHARMED but not in pl
|
||||||
pl.remove(charmed)
|
pl.remove(charmed)
|
||||||
if piper in var.PLAYERS and not is_user_simple(piper):
|
if piper in var.PLAYERS and not is_user_simple(piper):
|
||||||
pm(cli, piper, ('You are a \u0002piper\u0002. You must select two players ' +
|
pm(cli, piper, ('You are a \u0002piper\u0002. You must select two players ' +
|
||||||
|
Loading…
Reference in New Issue
Block a user