浏览代码

!2 fix ranshuang problem

pcacc 4 月之前
父节点
当前提交
553e6a9efa
共有 1 个文件被更改,包括 8 次插入8 次删除
  1. 8 8
      dongri_task.py

+ 8 - 8
dongri_task.py

@@ -1095,16 +1095,16 @@ class task_fight_ranshuang(dongri_task):
         basic_operate.backToGame()
 
         while True:
-            if waitClickImg_noWait_withBool(check_img.ranshuang_search, 0.5, 0.5) == False:
+            if waitClickImg_noWait_withBool(monster_img.ranshuang_search, 0.5, 0.5) == False:
                 return False
-            if waitClickImg_noWait_withBool(check_img.ranshuang_attack, 0.5, 0.5) == False:
-                break
+            if waitClickImg_noWait_withBool(monster_img.ranshuang_attack, 0.5, 0.5) == False:
+                firstPos = get_yys_random_point(special_activity_img.mid_enemy_region)
+                pcacc_mouse.click(firstPos[0], firstPos[1])
+                myTimeSleep_big()
+                if waitClickImg_noWait_withBool(monster_img.ranshuang_attack, 1, 0.5) == False:
+                    break
+            break
             
-            firstPos = get_yys_random_point(special_activity_img.first_enemy_region)
-            pcacc_mouse.click(firstPos[0], firstPos[1])
-            myTimeSleep_small()
-            if waitClickImg_noWait_withBool(check_img.ranshuang_attack, 0.5, 0.5) == False:
-                break
 
         
         if waitClickImg_noWait_withBool([monster_img.fight, monster_img.fight2], 1, 0.5) == False: