From a92bed75974d4400026cbfc49a83ac998c633e2c Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sun, 5 Nov 2023 22:30:17 +0800 Subject: [PATCH] Fix: Double event is run twice because record is never updated after the first --- tasks/dungeon/dungeon.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/dungeon/dungeon.py b/tasks/dungeon/dungeon.py index 9abb08353..810da2993 100644 --- a/tasks/dungeon/dungeon.py +++ b/tasks/dungeon/dungeon.py @@ -155,7 +155,9 @@ class Dungeon(DungeonUI, DungeonEvent, Combat): self.daily_quests = self.config.stored.DailyQuest.load_quests() # Update double event records - if self.config.stored.DungeonDouble.is_expired(): + if (self.config.stored.DungeonDouble.is_expired() + or self.config.stored.DungeonDouble.calyx > 0 + or self.config.stored.DungeonDouble.relic > 0): logger.info('Get dungeon double remains') # UI switches switched = self.dungeon_tab_goto(KEYWORDS_DUNGEON_TAB.Survival_Index)