mirror of
https://github.com/RYGhub/royal-mifia.git
synced 2024-11-25 23:24:18 +00:00
ep5 i bug colpiscono ancora
This commit is contained in:
parent
c910b09798
commit
f194bc498c
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -349,7 +349,7 @@ def findgamebyname(name) -> Game:
|
|||
"""Trova una partita con un certo nome."""
|
||||
for game in inprogress:
|
||||
if game.name.lower() == name.lower():
|
||||
return name
|
||||
return game
|
||||
|
||||
# Comandi a cui risponde il bot
|
||||
def ping(bot, update):
|
||||
|
@ -489,7 +489,7 @@ def power(bot, update):
|
|||
if game is None:
|
||||
game = findgamebyid(int(cmd[1]))
|
||||
if game is not None:
|
||||
player = game.findplayerbyid(update.message.from_user['id'])
|
||||
player = game.findplayerbyid(int(update.message.from_user['id'])
|
||||
if player is not None:
|
||||
if player.alive:
|
||||
player.role.power(bot, game, player, cmd[2])
|
||||
|
|
Loading…
Reference in a new issue