Make automatic totem aware of entrancement

This commit is contained in:
Vgr E. Barry 2015-10-28 22:28:30 -04:00
parent c525380be6
commit e3ad8a24db

View File

@ -4035,6 +4035,10 @@ def transition_day(cli, gameid=0):
ps = pl[:] ps = pl[:]
if var.LASTGIVEN.get(shaman) in ps: if var.LASTGIVEN.get(shaman) in ps:
ps.remove(var.LASTGIVEN.get(shaman)) ps.remove(var.LASTGIVEN.get(shaman))
if shaman in var.ENTRANCED:
for succubus in var.ROLES["succubus"]:
if succubus in ps:
ps.remove(succubus)
totem.func(cli, shaman, shaman, random.choice(ps), prefix="Because you forgot to give out your totem at night, you") totem.func(cli, shaman, shaman, random.choice(ps), prefix="Because you forgot to give out your totem at night, you")
else: else:
var.LASTGIVEN[shaman] = None var.LASTGIVEN[shaman] = None