Fix: Item wasn't added as walk result if item drops blessing, the curio effect

This commit is contained in:
LmeSzinc 2024-05-20 15:26:40 +08:00
parent 272f803d8c
commit 687e06b639

View File

@ -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: