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

Fix: shop refresh not available

This commit is contained in:
LmeSzinc
2025-11-04 14:01:43 +08:00
parent 928ff5f0a9
commit 106a22143e

View File

@@ -91,7 +91,9 @@ class ShopUI(UI):
if self.image_color_count(SHOP_REFRESH.button, color=(54, 117, 161), threshold=221, count=50):
self.device.click(SHOP_REFRESH)
continue
# not available: (52, 74, 94)
if self.image_color_count(SHOP_REFRESH.button, color=(52, 74, 94), threshold=221, count=50):
logger.info('Refresh not available')
break
# no `continue`, act like SHOP_REFRESH not matched
self.interval_clear(SHOP_REFRESH)