mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-15 22:19:18 +00:00
Fix: Item wasn't added as walk result if item drops blessing, the curio effect
This commit is contained in:
parent
272f803d8c
commit
687e06b639
@ -177,6 +177,12 @@ class MapControl(Combat, AimDetectorMixin):
|
||||
if waypoint.early_stop:
|
||||
return result
|
||||
if self.walk_additional():
|
||||
# Clearing items may trigger additional popups
|
||||
if attacked_item.started() and attacked_item.reached():
|
||||
logger.info('Walk result add: item')
|
||||
result.append('item')
|
||||
if 'item' in waypoint.expected_end and waypoint.early_stop:
|
||||
return result
|
||||
attacked_enemy.clear()
|
||||
attacked_item.clear()
|
||||
continue
|
||||
@ -228,7 +234,7 @@ class MapControl(Combat, AimDetectorMixin):
|
||||
if attacked_item.started() and attacked_item.reached():
|
||||
logger.info('Walk result add: item')
|
||||
result.append('item')
|
||||
if waypoint.early_stop:
|
||||
if 'item' in waypoint.expected_end and waypoint.early_stop:
|
||||
return result
|
||||
if waypoint.interact_radius > 0:
|
||||
if diff < waypoint.interact_radius:
|
||||
|
Loading…
Reference in New Issue
Block a user