mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-30 00:27:14 +08:00
Fix: Clicking MAP_CAT_ATTACK_MIRROR in Threat: Med
This commit is contained in:
@@ -280,11 +280,13 @@ class MapOperation(MysteryHandler, FleetPreparation, Retirement, FastForwardHand
|
|||||||
self.device.click(MAP_CAT_ATTACK)
|
self.device.click(MAP_CAT_ATTACK)
|
||||||
self.map_cat_attack_timer.reset()
|
self.map_cat_attack_timer.reset()
|
||||||
return True
|
return True
|
||||||
if self.image_color_count(MAP_CAT_ATTACK_MIRROR, color=(255, 231, 123), threshold=221, count=100):
|
if not self.map_is_clear_mode:
|
||||||
logger.info('Skip map being attack')
|
# Threat: Med has 106 pixels count, MAP_CAT_ATTACK_MIRROR has 290.
|
||||||
self.device.click(MAP_CAT_ATTACK)
|
if self.image_color_count(MAP_CAT_ATTACK_MIRROR, color=(255, 231, 123), threshold=221, count=200):
|
||||||
self.map_cat_attack_timer.reset()
|
logger.info('Skip map being attack')
|
||||||
return True
|
self.device.click(MAP_CAT_ATTACK)
|
||||||
|
self.map_cat_attack_timer.reset()
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user