Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit f866e63

Browse files
committed
Update core.py
made battle checks abit more consistent
1 parent c9e274d commit f866e63

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/core.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ def battle():
3535
battle_finished = 1
3636
common.sleep(3)
3737
if common.element_exist("pictures/events/skip.png"): #Checks for special battle skill checks prompt then calls skill check functions
38-
if battle_check() != 0:
38+
common.click_skip(10)
39+
if common.element_exist("pictures/mirror/general/event.png"):
40+
battle_check()
41+
else:
3942
skill_check()
4043
if common.element_exist("pictures/battle/winrate.png"):
4144
common.mouse_move_click(1624,1007) #handle onscreen prompts example sinking wolf
@@ -45,7 +48,7 @@ def battle():
4548

4649
def battle_check(): #pink shoes, woppily, doomsday clock
4750
logger.info("Battle Event Check")
48-
common.click_skip(10)
51+
4952
common.sleep(1)
5053
if common.element_exist("pictures/battle/investigate.png"): #Woppily
5154
logger.debug("WOPPILY")

0 commit comments

Comments
 (0)