From 39546d55c6cd81ec8aa6f51b0917b49662f7ab54 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Thu, 2 Jan 2025 00:49:13 +0800 Subject: [PATCH] Fix: get_event_story_state should not have interval --- module/eventstory/eventstory.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/module/eventstory/eventstory.py b/module/eventstory/eventstory.py index 0556460c4..10fcf5f6c 100644 --- a/module/eventstory/eventstory.py +++ b/module/eventstory/eventstory.py @@ -109,16 +109,16 @@ class EventStory(CampaignUI, Combat, LoginHandler): Returns: str: 'finish', 'story', 'unknown' """ - if self.match_template_color(STORY_FINISHED, offset=(20, 20), interval=3): + if self.match_template_color(STORY_FINISHED, offset=(20, 20)): return 'finish' - if self.appear_then_click(STORY_FIRST, offset=(20, 20), interval=3): + if self.appear_then_click(STORY_FIRST, offset=(20, 20)): return 'story' - if self.match_template_color(STORY_LAST, offset=(20, 20), interval=3): + if self.match_template_color(STORY_LAST, offset=(20, 20)): return 'story' - if self.appear_then_click(STORY_MIDDLE, offset=(20, 200), interval=3): + if self.appear_then_click(STORY_MIDDLE, offset=(20, 200)): return 'story' - if self.appear_then_click(BATTLE_MIDDLE, offset=(20, 200), interval=3): + if self.appear_then_click(BATTLE_MIDDLE, offset=(20, 200)): return 'story' return 'unknown'