Don't time out night if all wolves are silenced
This commit is contained in:
parent
5d14327380
commit
ca628dfe2e
@ -302,7 +302,8 @@ def on_chk_nightdone2(evt, cli, var):
|
|||||||
nevt = Event("wolf_numkills", {"numkills": 1})
|
nevt = Event("wolf_numkills", {"numkills": 1})
|
||||||
nevt.dispatch(var)
|
nevt.dispatch(var)
|
||||||
num_kills = nevt.data["numkills"]
|
num_kills = nevt.data["numkills"]
|
||||||
if num_kills == 0 or len(get_players(CAN_KILL)) == 0:
|
wofls = [x for x in get_players(CAN_KILL) if x.nick not in var.SILENCED]
|
||||||
|
if num_kills == 0 or len(wofls) == 0:
|
||||||
return
|
return
|
||||||
# flatten KILLS
|
# flatten KILLS
|
||||||
kills = set()
|
kills = set()
|
||||||
|
Loading…
Reference in New Issue
Block a user