@@ -325,6 +325,7 @@ def choose_letter_reward(self, timeout=0):
325325 raise_if_not_found = True ,
326326 )
327327 self .sleep (0.1 )
328+ self .wait_until (lambda : not self .in_team (), time_out = 3 , settle_time = 0.5 )
328329
329330 def create_skill_ticker (self ):
330331 skills = []
@@ -487,12 +488,14 @@ def reset_and_transport(self):
487488 time_out = 10 ,
488489 )
489490 confirm_box = self .box_of_screen_scaled (2560 , 1440 , 1298 , 776 , 1368 , 843 , name = "confirm_btn" , hcenter = True )
491+ safe_box = self .box_of_screen_scaled (2560 , 1440 , 125 , 207 , 1811 , 1234 , name = "safe_box" , hcenter = True )
490492 self .wait_until (
491493 condition = lambda : self .find_start_btn (box = confirm_box ),
492- post_action = lambda : self .click_relative_random (0.501 , 0.294 , 0.690 , 0.325 , use_safe_move = True ),
494+ post_action = lambda : self .click_relative_random (0.501 , 0.294 , 0.690 , 0.325 , use_safe_move = True , safe_move_box = safe_box ),
493495 time_out = 10 ,
494496 )
495- if not self .wait_until (condition = self .in_team , post_action = lambda : self .click_relative_random (0.514 , 0.547 , 0.671 , 0.578 , after_sleep = 0.5 ),
497+ safe_box = self .box_of_screen_scaled (2560 , 1440 , 1298 , 772 , 1735 , 846 , name = "safe_box" , hcenter = True )
498+ if not self .wait_until (condition = self .in_team , post_action = lambda : self .click_relative_random (0.514 , 0.547 , 0.671 , 0.578 , after_sleep = 0.5 , use_safe_move = True , safe_move_box = safe_box ),
496499 time_out = 10 ):
497500 self .ensure_main ()
498501 return False
0 commit comments