From ecf1248f40b53f472d6dc9bd5e6aa77077e68d66 Mon Sep 17 00:00:00 2001 From: Matt Main_PC Date: Mon, 11 Mar 2024 21:01:04 -0400 Subject: [PATCH] handing war chest during handle_clash_main_tab_notifications() --- src/pyclashbot/bot/nav.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pyclashbot/bot/nav.py b/src/pyclashbot/bot/nav.py index f61336160..4874ead93 100644 --- a/src/pyclashbot/bot/nav.py +++ b/src/pyclashbot/bot/nav.py @@ -1190,7 +1190,13 @@ def handle_clash_main_tab_notifications( # click clan tab from shop tab print("Clicked clan tab") click(vm_index, 315, 594) - time.sleep(5) + time.sleep(3) + + if check_for_war_chest_obstruction(vm_index): + open_war_chest_obstruction(vm_index, logger) + logger.add_war_chest_collect() + print(f"Incremented war chest collects to {logger.war_chest_collects}") + time.sleep(3) # click events tab from clan tab print("Getting to events tab...")