From ab6acc252b37b5e7cc5324d8789b5ad86712c3aa Mon Sep 17 00:00:00 2001 From: MilkMiracle Date: Sat, 31 Aug 2024 10:24:45 +0300 Subject: [PATCH] Fix daily combo Fixed a logical error that prevented the daily combo combo from being purchased if one of the cards had already been purchased --- bot/core/tapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot/core/tapper.py b/bot/core/tapper.py index 0cc4f39e..fdf81e23 100644 --- a/bot/core/tapper.py +++ b/bot/core/tapper.py @@ -158,7 +158,7 @@ async def run(self, proxy: str | None) -> None: if start_bonus_round <= datetime.now() < end_bonus_round: common_price = sum([upgrade['price'] for upgrade in available_combo_cards]) - need_cards_count = len(cards) + need_cards_count = 3 - len(upgraded_list) possible_cards_count = len(available_combo_cards) is_combo_accessible = need_cards_count == possible_cards_count