Fix KeyError when there are no elders

This commit is contained in:
nyuszika7h 2015-03-21 00:56:28 +01:00
parent 2cdc609ecd
commit b73f9350db

View File

@ -5234,6 +5234,7 @@ def transition_night(cli):
numwolves = len(var.list_players(var.WOLF_ROLES))
if var.NIGHT_COUNT >= numwolves + 1:
if "village elder" in var.ROLES:
for elder in var.ROLES["village elder"]:
var.DYING.append(elder)
debuglog(elder, "ELDER DEATH")