Sfoglia il codice sorgente

fix(ExperienceYoukai): cannot create room

Azure 1 anno fa
parent
commit
03de30ffde
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      tasks/Component/GeneralRoom/general_room.py

+ 2 - 0
tasks/Component/GeneralRoom/general_room.py

@@ -140,6 +140,8 @@ class GeneralRoom(BaseTask, GeneralRoomAssets):
                 break
             if name == '金币妖怪' and "金币" in text_ocr:
                 break
+            if name == '经验妖怪' and '经验' in text_ocr:
+                break
             if click_timer.reached():
                 click_timer.reset()
                 self.device.click(x=pos[0] + randint(-5, 5), y=pos[1] + randint(-5, 5))