|
@@ -1115,15 +1115,22 @@ class task_cure(dongri_task):
|
|
return True
|
|
return True
|
|
|
|
|
|
class task_useAnnimalSkill(dongri_task):
|
|
class task_useAnnimalSkill(dongri_task):
|
|
- def __init__(self):
|
|
|
|
|
|
+ def __init__(self, isFight = False):
|
|
|
|
+ self.isFight = isFight
|
|
super().__init__(f"使用动物技能")
|
|
super().__init__(f"使用动物技能")
|
|
def run(self):
|
|
def run(self):
|
|
basic_operate.go_outside()
|
|
basic_operate.go_outside()
|
|
if waitClickImg_noWait_withBool(check_img.annimal_skill, 2, 1) == False:
|
|
if waitClickImg_noWait_withBool(check_img.annimal_skill, 2, 1) == False:
|
|
return False
|
|
return False
|
|
|
|
+ research_skill = [check_img.wolf_skill, check_img.elephant_skill, check_img.lu_skill]
|
|
|
|
+ fight_skill = [check_img.fightWolf_skill, check_img.bird_skill, check_img.bear_skill, check_img.lion_skill]
|
|
|
|
|
|
- if waitClickImg_noWait_withBool((check_img.wolf_skill, check_img.elephant_skill, check_img.lu_skill), 2, 1) == False:
|
|
|
|
- return False
|
|
|
|
|
|
+ if self.isFight == False:
|
|
|
|
+ if waitClickImg_noWait_withBool(research_skill, 2, 1) == False:
|
|
|
|
+ return False
|
|
|
|
+ else:
|
|
|
|
+ if waitClickImg_noWait_withBool(fight_skill, 2, 1) == False:
|
|
|
|
+ return False
|
|
|
|
|
|
if waitClickImg_noWait_withBool((check_img.use, check_img.use2), 2, 1) == False:
|
|
if waitClickImg_noWait_withBool((check_img.use, check_img.use2), 2, 1) == False:
|
|
return False
|
|
return False
|