From 5f0a45583f1fc44114d1f6d38eb5c4905622b27a Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 15 Oct 2019 20:48:04 +0800 Subject: [PATCH] cards: cards should be got_cards --- cards.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cards.py b/cards.py index a9004bb..d3bcc8b 100644 --- a/cards.py +++ b/cards.py @@ -271,7 +271,7 @@ def dist_cards_btn_click(update, context): rp[1] -= 1 (cards, damount) = rp fplayer = get_player(int(user.id)) - fplayer.immunity_cards += cards + fplayer.immunity_cards += got_cards fplayer.save() update.callback_query.answer(text=f"你得到了{got_cards}张卡", show_alert=False) if cards > 0 and damount > 0: