mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-11 20:58:19 +08:00
Fix: Redundant way node when having one-way portal
- Add: expected story
This commit is contained in:
@@ -271,6 +271,12 @@ class Fleet(Camera, AmbushHandler):
|
||||
arrived = True
|
||||
break
|
||||
|
||||
# Story
|
||||
if expected == 'story':
|
||||
if self.handle_story_skip():
|
||||
result = 'story'
|
||||
continue
|
||||
|
||||
# End
|
||||
if ambushed_retry.started() and ambushed_retry.reached():
|
||||
break
|
||||
|
||||
@@ -492,7 +492,7 @@ class CampaignMap:
|
||||
index += [i, i + 1]
|
||||
index.append(len(path))
|
||||
for start, end in zip(index[:-1], index[1:]):
|
||||
if end - start == 1 and self[path[start]].is_portal and self[path[end]].is_portal:
|
||||
if end - start == 1 and self[path[start]].is_portal and self[path[start]].portal_link == path[end]:
|
||||
continue
|
||||
local_path = path[start:end + 1]
|
||||
local_path = self._find_route_node(local_path, step=step)
|
||||
|
||||
Reference in New Issue
Block a user