summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2021-12-23 19:36:20 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2021-12-23 23:15:21 +0100
commit143947ad03054b7297de4da4195548860e6541f1 (patch)
treebba302d9fef764fb0a01d9d5f7f892adac93f6d3
parentf028b666acf73f395e01ab22da5100b5202e74ea (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>
-rw-r--r--swiftstory/game.py2
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],
},
},