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

Refactor: Standardize the use of match_template_color()

This commit is contained in:
LmeSzinc
2024-12-09 16:09:34 +08:00
parent 164db6f4da
commit ba5b853cb9
22 changed files with 79 additions and 66 deletions

View File

@@ -363,8 +363,7 @@ class RewardCommission(UI, InfoHandler):
raise GameStuckError('Triggered commission list flashing bug')
# Click
if (self.appear(COMMISSION_START, offset=(5, 20), interval=7)
and COMMISSION_START.match_appear_on(self.device.image)):
if self.match_template_color(COMMISSION_START, offset=(5, 20), interval=7):
self.device.click(COMMISSION_START)
self.interval_reset(COMMISSION_ADVICE)
comm_timer.reset()