cards: cards should be got_cards

This commit is contained in:
JerryXiao 2019-10-15 20:48:04 +08:00
parent c6e8c18128
commit 5f0a45583f
Signed by: Jerry
GPG Key ID: 9D9CE43650FF2BAA
1 changed files with 1 additions and 1 deletions

View File

@ -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: