Skip to content

Commit ed1a430

Browse files
committed
Fix: precondition for exit room incomplete, ensure not in interact state also to safely assume in dialogue state
1 parent 8d75bfa commit ed1a430

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

module/private_quarters/interact.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,9 @@ def _pq_goto_room_exit(self):
215215
"""
216216
# Rare case in the middle of dialogue, so address
217217
# before initiating room exit
218-
if not self.appear(PRIVATE_QUARTERS_ROOM_CHECK, offset=(20, 20)):
219-
self._pq_handle_dialogue()
218+
if (not self.appear(PRIVATE_QUARTERS_ROOM_CHECK, offset=(20, 20)) and
219+
not self.appear(PRIVATE_QUARTERS_INTERACT, offset=(0, 60))):
220+
self._pq_handle_dialogue()
220221

221222
self.interval_clear(PRIVATE_QUARTERS_ROOM_BACK)
222223
self.ui_click(

0 commit comments

Comments
 (0)