Browse Source

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

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

3
modules/wolfgame.py

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

Loading…
Cancel
Save