1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-04-03 04:11:14 +08:00

Fix: Limit match area of SHOP_REFRESH

to handle spamming bulin character at bottom-right of shop page, at April 1st
This commit is contained in:
LmeSzinc
2026-04-01 01:17:12 +08:00
parent 278edcdf12
commit 032b2c1931
4 changed files with 5 additions and 2 deletions

View File

@@ -83,7 +83,9 @@ class ShopUI(UI):
for _ in self.loop():
if self.appear(POPUP_CONFIRM, offset=(30, 30)):
break
if self.appear(SHOP_REFRESH, offset=(30, 30), interval=3):
# SHOP_REFRESH_CHECK is the refresh icon
# SHOP_REFRESH is refresh icon with surrounded background
if self.appear(SHOP_REFRESH_CHECK, offset=(30, 30), interval=3):
# SHOP_REFRESH has two kinds of color when active
if self.image_color_count(SHOP_REFRESH.button, color=(49, 142, 207), threshold=221, count=50):
self.device.click(SHOP_REFRESH)