mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-29 00:54:18 +00:00
bugfix
This commit is contained in:
parent
a37db0de02
commit
e331b25e7d
1 changed files with 6 additions and 4 deletions
10
main.py
10
main.py
|
@ -304,10 +304,12 @@ class Mamma(Role):
|
||||||
return r
|
return r
|
||||||
|
|
||||||
def onstartgame(self, bot, game):
|
def onstartgame(self, bot, game):
|
||||||
target = random.sample(game.players, 1)[0]
|
target = None
|
||||||
self.player.message(bot, s.mom_discovery.format(target=target.tusername,
|
while target != self.player:
|
||||||
icon=target.role.icon,
|
target = random.sample(game.players, 1)[0]
|
||||||
role=target.role.name))
|
self.player.message(bot, s.mom_discovery.format(target=target.tusername,
|
||||||
|
icon=target.role.icon,
|
||||||
|
role=target.role.name))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue