Browse Source

!2 can not collect

pcacc 4 months ago
parent
commit
aa7e14a218
1 changed files with 5 additions and 0 deletions
  1. 5 0
      dongri_task.py

+ 5 - 0
dongri_task.py

@@ -422,12 +422,17 @@ class task_collect(dongri_task):
             self.type = monster_img.iron
             self.line = monster_img.line5
             super().__init__(f"采集铁矿石")
+        else:
+            self.type = None
+            self.line = None
 
         if isSimple:
             self.line = None
         
 
     def run(self):
+        if self.type == None:
+            return True
         basic_operate.go_outside()
         if False == basic_operate.click_outside_search():
             return False