Fix cursed villager not being seen as wolf

This commit is contained in:
skizzerz 2016-09-13 16:42:54 -05:00
parent 01dfdc7ac4
commit cc7138eb44
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ from src.events import Event
@event_listener("see")
def on_see(evt, cli, var, nick, victim):
if nick in var.ROLES["cursed villager"]:
if victim in var.ROLES["cursed villager"]:
evt.data["role"] = "wolf"
@event_listener("wolflist")

View File

@ -31,6 +31,7 @@ def see(cli, nick, chan, rest):
return
victim = evt.data["target"]
victimrole = get_role(victim)
vrole = victimrole # keep a copy for logging
if role != "augur":
if (victimrole in var.SEEN_WOLF and victimrole not in var.SEEN_DEFAULT):
@ -50,7 +51,6 @@ def see(cli, nick, chan, rest):
evt = Event("investigate", {"role": victimrole})
evt.dispatch(cli, var, nick, victim)
victimrole = evt.data["role"]
vrole = victimrole # keep a copy for logging
if role == "seer":
pm(cli, nick, (messages["seer_success"]).format(victim, victimrole))