Pārlūkot izejas kodu

!2 can not collect

pcacc 4 mēneši atpakaļ
vecāks
revīzija
aa7e14a218
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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