Fix trav error handling (#248)

This commit is contained in:
aeon0
2021-12-09 22:46:04 +01:00
committed by GitHub
parent 81d513b0c9
commit 84a5b6257f

View File

@@ -43,7 +43,8 @@ class Trav:
return False
if do_pre_buff:
self._char.pre_buff()
self._pather.traverse_nodes((Location.A3_TRAV_START, Location.A3_TRAV_CENTER_STAIRS), self._char, force_move=True)
if not self._pather.traverse_nodes((Location.A3_TRAV_START, Location.A3_TRAV_CENTER_STAIRS), self._char, force_move=True):
return False
self._char.kill_council()
picked_up_items = self._pickit.pick_up_items(self._char, "Travincal")
wait(0.2, 0.3)