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

View file

@ -271,7 +271,7 @@ def dist_cards_btn_click(update, context):
rp[1] -= 1 rp[1] -= 1
(cards, damount) = rp (cards, damount) = rp
fplayer = get_player(int(user.id)) fplayer = get_player(int(user.id))
fplayer.immunity_cards += cards fplayer.immunity_cards += got_cards
fplayer.save() fplayer.save()
update.callback_query.answer(text=f"你得到了{got_cards}张卡", show_alert=False) update.callback_query.answer(text=f"你得到了{got_cards}张卡", show_alert=False)
if cards > 0 and damount > 0: if cards > 0 and damount > 0: