diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-23 19:36:20 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-23 23:15:21 +0100 |
commit | 143947ad03054b7297de4da4195548860e6541f1 (patch) | |
tree | bba302d9fef764fb0a01d9d5f7f892adac93f6d3 /swiftstory/game.py | |
parent | f028b666acf73f395e01ab22da5100b5202e74ea (diff) |
Fix reception of card having wrong index
When sending a card reception notification, we don't want to provide the
index from the whole deck. Instead we want to give a counter
corresponding to the player's total number of received cards.
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/game.py')
-rw-r--r-- | swiftstory/game.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftstory/game.py b/swiftstory/game.py index 20ac726..f48633b 100644 --- a/swiftstory/game.py +++ b/swiftstory/game.py @@ -160,7 +160,7 @@ class Game: 'op': 'received_card', 'content': { 'card': { - 'id': p.cards[idx][0], + 'id': idx, 'desc': p.cards[idx][1], }, }, |