Browse Source

fix bug 16

master
jcao219 14 years ago
parent
commit
fe24b6a86e
  1. 8
      wolfgame.py

8
wolfgame.py

@ -789,10 +789,14 @@ def del_player(cli, nick, forced_death = False): @@ -789,10 +789,14 @@ def del_player(cli, nick, forced_death = False):
del x[k]
if var.PHASE == "day" and not forced_death and ret: # didn't die from lynching
if nick in var.VOTES.keys():
del var.VOTES[nick] # Delete his votes
for k in var.VOTES.keys():
del var.VOTES[nick] # Delete other people's votes on him
for k in list(var.VOTES.keys()):
if nick in var.VOTES[k]:
var.VOTES[k].remove(nick)
if not var.VOTES[k]: # no more votes on that guy
del var.VOTES[k]
break # can only vote once
if nick in var.WOUNDED:
var.WOUNDED.remove(nick)
chk_decision(cli)

Loading…
Cancel
Save