fix getcard

This commit is contained in:
Giulio 2020-12-21 00:35:05 +01:00
parent 174d037d8c
commit e2a5147dc6

View File

@ -240,7 +240,7 @@ def chat_message(sid, msg):
cmd = msg.split() cmd = msg.split()
if len(cmd) >= 2: if len(cmd) >= 2:
cards = cs.get_starting_deck(ses.game.expansions) cards = cs.get_starting_deck(ses.game.expansions)
ses.hand.append = [c for c in cards if c.name == ' '.join(cmd[1:])][0] ses.hand.append([c for c in cards if c.name == ' '.join(cmd[1:])][0])
ses.notify_self() ses.notify_self()
elif '/gameinfo' in msg: elif '/gameinfo' in msg:
sio.emit('chat_message', room=sid, data={'color': f'','text':f'info: {ses.game.__dict__}'}) sio.emit('chat_message', room=sid, data={'color': f'','text':f'info: {ses.game.__dict__}'})