mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-23 09:01:45 +00:00
Fix: 修复3-4小概率出错的问题
- 弹药边缘可能影响边缘识别 - 模仿1-1, 改用固定滑动
This commit is contained in:
parent
129f03d5fb
commit
6b41f3f692
@ -48,5 +48,7 @@ class Campaign(CampaignBase):
|
||||
return self.clear_boss()
|
||||
|
||||
def handle_boss_appear_refocus(self):
|
||||
self.map_swipe((-3, 0))
|
||||
for data in self.map.spawn_data:
|
||||
if data.get('battle') == self.battle_count and data.get('boss', 0):
|
||||
self.map_swipe((-3, 0))
|
||||
return super().handle_boss_appear_refocus()
|
||||
|
@ -54,3 +54,10 @@ class Campaign(CampaignBase):
|
||||
return self.battle_default()
|
||||
|
||||
return self.clear_boss()
|
||||
|
||||
def handle_boss_appear_refocus(self):
|
||||
for data in self.map.spawn_data:
|
||||
if data.get('battle') == self.battle_count and data.get('boss', 0):
|
||||
self.map_swipe((-3, -1))
|
||||
|
||||
return super().handle_boss_appear_refocus()
|
||||
|
Loading…
Reference in New Issue
Block a user