From dcb7016b2f41db951ff305dead7e5c9ba69f8c4b Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Tue, 1 Oct 2013 22:09:35 +0200 Subject: [PATCH] Prevent seer from seeing themselves --- modules/wolfgame.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/wolfgame.py b/modules/wolfgame.py index a0af950..a040d36 100644 --- a/modules/wolfgame.py +++ b/modules/wolfgame.py @@ -1991,8 +1991,11 @@ def see(cli, nick, rest): else: if matches != 1: pm(cli, nick,"\u0002{0}\u0002 is currently not playing.".format(victim)) - return + returnj victim = pl[pll.index(target)] + if victim == nick: + pm(cli, nick, "Seeing yourself would be a waste.") + return if victim in var.CURSED or var.get_role(victim) == "werecrow": role = "wolf" elif var.get_role(victim) == "traitor":