mirror of
https://github.com/TheFunny/ArisuAutoSweeper
synced 2025-12-16 15:35:12 +00:00
fix(tc): restrict count frequency of claim reward
This commit is contained in:
parent
04744d6f8c
commit
256dc96598
@ -32,10 +32,10 @@ class TacticalChallengeUI(UI):
|
||||
if self.match_color(GOT_REWARD_DAILY) and self.match_color(GOT_REWARD_CREDIT):
|
||||
return True
|
||||
if self.match_color(GET_REWARD_DAILY):
|
||||
self.device.click(GET_REWARD_DAILY)
|
||||
self.click_with_interval(GET_REWARD_DAILY, 0.3)
|
||||
logger.info('Get daily reward')
|
||||
if self.match_color(GET_REWARD_CREDIT):
|
||||
self.device.click(GET_REWARD_CREDIT)
|
||||
self.click_with_interval(GET_REWARD_CREDIT, 0.3)
|
||||
logger.info('Get credit reward')
|
||||
if timer.reached():
|
||||
return False
|
||||
|
||||
Loading…
Reference in New Issue
Block a user