Fix the chk_nightdone event not working properly

This commit is contained in:
Vgr E. Barry 2015-10-30 12:18:11 -04:00
parent e013d76d5c
commit cbed18fd93

View File

@ -4882,6 +4882,7 @@ def chk_nightdone(cli):
event = Event("chk_nightdone", {"actedcount": actedcount, "nightroles": nightroles})
event.dispatch(cli, var)
actedcount = event.data["actedcount"]
if var.PHASE == "night" and actedcount >= len(nightroles):
if not event.prevent_default: