Explorar el Código

Merge pull request #1439 from AARONkjLee/master

解决爬塔过程中奖励挡住“魂”导致卡主
huangrunheng hace 8 meses
padre
commit
99d0a1450c
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      tasks/ActivityShikigami/script_task.py

+ 1 - 1
tasks/ActivityShikigami/script_task.py

@@ -297,7 +297,7 @@ class ScriptTask(StateMachine, GameUi, BaseActivity, SwitchSoul, ActivityShikiga
             if self.appear_then_click(self.I_WIN, interval=2):
             if self.appear_then_click(self.I_WIN, interval=2):
                 continue
                 continue
             #  出现 “魂” 和 紫蛇皮
             #  出现 “魂” 和 紫蛇皮
-            if self.appear(self.I_REWARD):
+            if self.appear(self.I_REWARD) or self.appear(self.I_REWARD_PURPLE_SNAKE_SKIN):
                 logger.info('Win battle')
                 logger.info('Win battle')
                 while 1:
                 while 1:
                     self.screenshot()
                     self.screenshot()