mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-21 20:39:18 +08:00
Fix: BATTLE_PASS_RED_DOT.load_offset is now working
This commit is contained in:
@@ -23,7 +23,7 @@ class BattlePass(Combat, UI):
|
|||||||
BATTLE_PASS_RED_DOT.load_offset(REWARD_GOTO_BATTLE_PASS)
|
BATTLE_PASS_RED_DOT.load_offset(REWARD_GOTO_BATTLE_PASS)
|
||||||
# Not using self.appear() here, because it's transparent,
|
# Not using self.appear() here, because it's transparent,
|
||||||
# color may be different depending on background.
|
# color may be different depending on background.
|
||||||
r, _, _ = get_color(self.device.image, BATTLE_PASS_RED_DOT.area)
|
r, _, _ = get_color(self.device.image, BATTLE_PASS_RED_DOT.button)
|
||||||
if r > BATTLE_PASS_RED_DOT.color[0] - 40:
|
if r > BATTLE_PASS_RED_DOT.color[0] - 40:
|
||||||
logger.info('Found battle pass red dot')
|
logger.info('Found battle pass red dot')
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user