Prechádzať zdrojové kódy

!2 yongbing judge line num too

pcacc 4 mesiacov pred
rodič
commit
1de9a768cf
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      dongri_task.py

+ 5 - 1
dongri_task.py

@@ -251,7 +251,11 @@ class task_fight_yongbing(dongri_task):
             else:
                 print("没有足够的体力了")
                 return False
-            
+        
+
+        if basic_operate.get_line_num() >= 6:
+            return False
+
         if waitClickImg_noWait_withBool(check_img.yongbing, 2, 1) == False:
             return False