Browse Source

Make !frole not cause duplicate entries in the list of cursed villagers

master
Jimmy Cao 13 years ago
parent
commit
d8d5145863
  1. 1
      modules/wolfgame.py

1
modules/wolfgame.py

@ -2914,6 +2914,7 @@ if botconfig.DEBUG_MODE or botconfig.ALLOWED_NORMAL_MODE_COMMANDS:
if who not in pl: if who not in pl:
var.ROLES["villager"].append(who) var.ROLES["villager"].append(who)
elif rol == "cursed villager": elif rol == "cursed villager":
if who not in var.CURSED:
var.CURSED.append(who) var.CURSED.append(who)
if who not in pl: if who not in pl:
var.ROLES["villager"].append(who) var.ROLES["villager"].append(who)

Loading…
Cancel
Save