Fix random errors. Blame Vgr.
This commit is contained in:
parent
47f4f77f10
commit
cd7aac9398
@ -4004,6 +4004,7 @@ def guard(cli, nick, chan, rest):
|
||||
if var.GUARDED.get(nick):
|
||||
pm(cli, nick, "You are already protecting someone tonight.")
|
||||
return
|
||||
role = var.get_role(nick)
|
||||
victim = get_victim(cli, nick, re.split(" +",rest)[0], role == "bodyguard" or var.GUARDIAN_ANGEL_CAN_GUARD_SELF)
|
||||
if not victim:
|
||||
return
|
||||
@ -4037,6 +4038,7 @@ def guard(cli, nick, chan, rest):
|
||||
|
||||
@cmd("observe", chan=False, pm=True, game=True, playing=True, roles=("werecrow", "sorcerer"))
|
||||
def observe(cli, nick, chan, rest):
|
||||
role = var.get_role(nick)
|
||||
if var.PHASE != "night":
|
||||
if role == "werecrow":
|
||||
pm(cli, nick, "You may only transform into a crow at night.")
|
||||
|
@ -69,7 +69,7 @@ def generate(fdict, permissions=True, **kwargs):
|
||||
largs[0].notice(nick, "Werewolf is already in play.")
|
||||
return
|
||||
if playing and nick not in var.list_players() or nick in var.DISCONNECTED.keys():
|
||||
cli.notice(nick, "You're not currently playing.")
|
||||
largs[0].notice(nick, "You're not currently playing.")
|
||||
return
|
||||
if roles:
|
||||
for role in roles:
|
||||
|
Loading…
x
Reference in New Issue
Block a user