浏览代码

!2 can not collect

pcacc 4 月之前
父节点
当前提交
aa7e14a218
共有 1 个文件被更改,包括 5 次插入0 次删除
  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