Explorar o código

fix(ScriptTask): Add reward collection logic to click on rewards if they appear

Migs hai 11 meses
pai
achega
c6de6c440c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tasks/Duel/script_task.py

+ 2 - 0
tasks/Duel/script_task.py

@@ -88,6 +88,8 @@ class ScriptTask(GameUi, GeneralBattle, SwitchSoul, DuelAssets):
         duel_week_over = False
         duel_week_over = False
         while 1:
         while 1:
             self.screenshot()
             self.screenshot()
+            if self.appear_then_click(self.I_REWARD, interval=0.6):
+                continue
             if not self.duel_main():
             if not self.duel_main():
                 continue
                 continue
             # 检查分数
             # 检查分数