|
|
@ -1,3 +1,4 @@
|
|
|
|
|
|
|
|
from werewolf.night_powers import pick_target
|
|
|
|
from werewolf.role import Role
|
|
|
|
from werewolf.role import Role
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -83,19 +84,7 @@ class Seer(Role):
|
|
|
|
|
|
|
|
|
|
|
|
async def choose(self, ctx, data):
|
|
|
|
async def choose(self, ctx, data):
|
|
|
|
"""Handle night actions"""
|
|
|
|
"""Handle night actions"""
|
|
|
|
if not self.player.alive: # FixMe: Game handles this?
|
|
|
|
await super().choose(ctx, data)
|
|
|
|
await self.player.send_dm("You're already dead!")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
target_id = int(data)
|
|
|
|
|
|
|
|
try:
|
|
|
|
|
|
|
|
target = self.game.players[target_id]
|
|
|
|
|
|
|
|
except IndexError:
|
|
|
|
|
|
|
|
target = None
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if target is None:
|
|
|
|
|
|
|
|
await ctx.send("Not a valid ID")
|
|
|
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
self.see_target = target_id
|
|
|
|
self.see_target, target = await pick_target(self, ctx, data)
|
|
|
|
await ctx.send("**You will attempt to see the role of {} tonight...**".format(target.member.display_name))
|
|
|
|
await ctx.send("**You will attempt to see the role of {} tonight...**".format(target.member.display_name))
|
|
|
|