Fix: Set is_doing_planner in weekly

This commit is contained in:
LmeSzinc 2024-06-17 22:40:27 +08:00
parent 68842a187c
commit b503443816

View File

@ -55,6 +55,7 @@ class WeeklyDungeon(Dungeon):
planner = self.planner.get_weekly() planner = self.planner.get_weekly()
if planner is not None: if planner is not None:
dungeon = planner dungeon = planner
self.is_doing_planner = True
logger.attr('DungeonWeekly', dungeon) logger.attr('DungeonWeekly', dungeon)
# UI switches # UI switches
@ -81,6 +82,7 @@ class WeeklyDungeon(Dungeon):
# Combat # Combat
count = self.dungeon_run(dungeon, wave_limit=min(remain, 3)) count = self.dungeon_run(dungeon, wave_limit=min(remain, 3))
self.is_doing_planner = False
logger.attr('achieved_daily_quest', self.achieved_daily_quest) logger.attr('achieved_daily_quest', self.achieved_daily_quest)
logger.attr('achieved_weekly_quest', self.achieved_weekly_quest) logger.attr('achieved_weekly_quest', self.achieved_weekly_quest)