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