mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-22 22:13:45 +08:00
Fix: 修复跳过猫攻击的动画
This commit is contained in:
@@ -151,6 +151,7 @@ class Fleet(Camera, MapOperation, AmbushHandler):
|
|||||||
|
|
||||||
# Cat attack animation
|
# Cat attack animation
|
||||||
if self.handle_map_cat_attack():
|
if self.handle_map_cat_attack():
|
||||||
|
walk_timeout.reset()
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if self.handle_walk_out_of_step():
|
if self.handle_walk_out_of_step():
|
||||||
|
|||||||
@@ -146,6 +146,7 @@ class MapOperation(UrgentCommissionHandler, MysteryHandler, FleetPreparation, Re
|
|||||||
return False
|
return False
|
||||||
if np.sum(color_similarity_2d(self.image_area(MAP_CAT_ATTACK), (255, 231, 123)) > 221) > 100:
|
if np.sum(color_similarity_2d(self.image_area(MAP_CAT_ATTACK), (255, 231, 123)) > 221) > 100:
|
||||||
logger.info('Skip map cat attack')
|
logger.info('Skip 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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user