From 1f06e7a32ad4cd172caf89e52dc5d6a570a7521f Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Tue, 18 Jun 2024 19:57:19 +0800 Subject: [PATCH] Fix: Missing inv on synthesize_rarity_resin call --- tasks/item/synthesize.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/item/synthesize.py b/tasks/item/synthesize.py index c85cfcb64..c6963713f 100644 --- a/tasks/item/synthesize.py +++ b/tasks/item/synthesize.py @@ -181,7 +181,7 @@ class Synthesize(CombatObtain, ItemUI): return switched - def synthesize_rarity_reset(self, inv=None, skip_first_screenshot=True): + def synthesize_rarity_reset(self, inv, skip_first_screenshot=True): """ Reset rarity switch, so current item will pin on the first row @@ -322,7 +322,7 @@ class Synthesize(CombatObtain, ItemUI): if next_row is None: if inv.selected.loca[1] >= 3: logger.info('Reached inventory view end, reset view') - self.synthesize_rarity_reset() + self.synthesize_rarity_reset(inv=inv) logger.hr('Synthesize select view', level=2) continue else: