1
0
mirror of https://github.com/TheFunny/ArisuAutoSweeper synced 2026-06-09 20:04:52 +00:00

perf: shop

This commit is contained in:
RedDeadDepresso
2024-01-07 01:58:00 +00:00
committed by YoursFunny
parent 17851b86de
commit 0184376076
+1 -1
View File
@@ -109,7 +109,7 @@ class ShopUI(UI):
self.swipe_flags[8], self.swipe_flags[16] = False, False
def make_purchase(self):
if self.select_then_check(PURCHASE, CONFIRM_PURCHASE) and self.appear_then_click(CONFIRM_PURCHASE):
if self.match_color(PURCHASE) and self.select_then_check(PURCHASE, CONFIRM_PURCHASE) and self.appear_then_click(CONFIRM_PURCHASE):
return True
logger.warning("No items were selected. Unable to purchase.")
return False