|
|
@ -825,14 +825,8 @@ def on_nick(cli, prefix, nick): |
|
|
|
r.remove(prefix) |
|
|
|
r.remove(prefix) |
|
|
|
|
|
|
|
|
|
|
|
if var.PHASE in ("night", "day"): |
|
|
|
if var.PHASE in ("night", "day"): |
|
|
|
for a,b in list(var.KILLS.items()): |
|
|
|
for dictvar in (var.HVISITED, var.OBSERVED, var.GUARDED, var.KILLS): |
|
|
|
if prefix == b: |
|
|
|
kvp = [] |
|
|
|
var.KILLS[a] = nick |
|
|
|
|
|
|
|
elif prefix == a: |
|
|
|
|
|
|
|
var.KILLS[nick] = b |
|
|
|
|
|
|
|
del var.KILLS[a] |
|
|
|
|
|
|
|
kvp = [] |
|
|
|
|
|
|
|
for dictvar in (var.HVISITED, var.OBSERVED, var.GUARDED): |
|
|
|
|
|
|
|
for a,b in dictvar.items(): |
|
|
|
for a,b in dictvar.items(): |
|
|
|
if a == prefix: |
|
|
|
if a == prefix: |
|
|
|
a = nick |
|
|
|
a = nick |
|
|
@ -1344,6 +1338,8 @@ def observe(cli, nick, rest): |
|
|
|
cli.msg(nick, "Flying to another wolf's house is a waste of time.") |
|
|
|
cli.msg(nick, "Flying to another wolf's house is a waste of time.") |
|
|
|
return |
|
|
|
return |
|
|
|
var.OBSERVED[nick] = victim |
|
|
|
var.OBSERVED[nick] = victim |
|
|
|
|
|
|
|
if nick in var.KILLS.keys(): |
|
|
|
|
|
|
|
del var.KILLS[nick] |
|
|
|
var.ACTED_WOLVES.add(nick) |
|
|
|
var.ACTED_WOLVES.add(nick) |
|
|
|
cli.msg(nick, ("You transform into a large crow and start your flight "+ |
|
|
|
cli.msg(nick, ("You transform into a large crow and start your flight "+ |
|
|
|
"to \u0002{0}'s\u0002 house. You will return after "+ |
|
|
|
"to \u0002{0}'s\u0002 house. You will return after "+ |
|
|
|