Skip to content

Commit

Permalink
修复潜在bug:父类的on_move_after方法有跳过对话的选项,可能导致无法和凯瑟琳对话
Browse files Browse the repository at this point in the history
  • Loading branch information
tignioj committed Nov 2, 2024
1 parent d9c2269 commit 59fb0fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions myexecutor/DailyRewardExecutor.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ def on_nearby(self, coordinates):
if len(self.gc.get_icon_position(self.gc.icon_dialog_eyes))>0:
raise ExecuteTerminateException("已经到达")

def on_move_after(self, point):
self.kb_press_and_release('f')
if len(self.gc.get_icon_position(self.gc.icon_dialog_eyes))>0:
raise ExecuteTerminateException("已经到达")

if __name__ == '__main__':
# DailyRewardExecutor.click_encounter_point_gift()
Expand Down

0 comments on commit 59fb0fe

Please sign in to comment.