From 143947ad03054b7297de4da4195548860e6541f1 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 23 Dec 2021 19:36:20 +0100 Subject: 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 --- swiftstory/game.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swiftstory') 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], }, }, -- cgit v1.2.3