|
@@ -1093,13 +1093,21 @@ class task_fight_ranshuang(dongri_task):
|
|
super().__init__(f"打燃霜")
|
|
super().__init__(f"打燃霜")
|
|
def run(self):
|
|
def run(self):
|
|
basic_operate.backToGame()
|
|
basic_operate.backToGame()
|
|
- maxTime = 4
|
|
|
|
- while waitClickImg_noWait_withBool([monster_img.ranshuang_attack, monster_img.ranshuang_search], 1, 1) and maxTime > 0:
|
|
|
|
- maxTime -= 1
|
|
|
|
- continue
|
|
|
|
|
|
+
|
|
|
|
+ while True:
|
|
|
|
+ if waitClickImg_noWait_withBool(check_img.ranshuang_search, 0.5, 0.5) == False:
|
|
|
|
+ return False
|
|
|
|
+ if waitClickImg_noWait_withBool(check_img.ranshuang_attack, 0.5, 0.5) == False:
|
|
|
|
+ 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, 1) == False:
|
|
|
|
|
|
+ if waitClickImg_noWait_withBool([monster_img.fight, monster_img.fight2], 1, 0.5) == False:
|
|
return False
|
|
return False
|
|
return True
|
|
return True
|
|
|
|
|