cards: cards should be got_cards
This commit is contained in:
parent
c6e8c18128
commit
5f0a45583f
1 changed files with 1 additions and 1 deletions
2
cards.py
2
cards.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue