Fix: 修复3-4小概率出错的问题

- 弹药边缘可能影响边缘识别
- 模仿1-1, 改用固定滑动
This commit is contained in:
LmeSzinc 2020-04-16 19:12:22 +08:00
parent 129f03d5fb
commit 6b41f3f692
2 changed files with 10 additions and 1 deletions

View File

@ -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()

View File

@ -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()