pyclashbot / py-clash-bot

An inherently undetectable Clash Royale automation bot
https://pyclashbot.app/
93 stars 14 forks source link

Battle Resumption & Functionality Fixes #404

Closed Stredy closed 6 months ago

Stredy commented 6 months ago

New Features:

  1. Combat Resumption on Launch: Implemented via "check_if_in_battle_at_start". In some instances, you may find yourself at the battle's end immediately, thus "check_end_of_battle_screen" has been added.

Gameplay Stats:

  1. Ensures that the number of battles stats remain unchanged when resuming a battle at launch; only "cards played" stats are updated.

Battle Mode Enhancements:

  1. 1v1 Battle Improvements: Added "check_both_1v1_modes_available" to determine if Path of Legends is available, enabling better information management.

  2. Battle Stats Recording: Enhanced the way "Trophy Road Battles" and "Path of Legends Battles" stats are recorded. Stats are now updated post-completion of a battle instead of at the click of the "Battle" button.

UI and Interaction Enhancements:

  1. Clan Chat Page Checks: Improved "check_if_on_clan_chat_page" to reduce waiting times.

  2. Request State Improvements: Modified "request_state" to ensure continuous card selection until the request button is visible. This addresses issues encountered when {max_scrolls} = {random_scroll_amount} prevented successful card selection.

  3. War Battle Icon Selection: Refined "find_and_click_war_battle_icon" by eliminating unnecessary images, adding new ones, and enhancing icon detection methods.

  4. War Page Checks: "check_if_on_war_page" has been improved to prevent unnecessary restarts after completing a war battle, thanks to new pixel and color checks.