Browse Source

Merge pull request #1192 from BluettDream/dev_fix_expyoukai

fix(ExperienceYoukai): cannot create room
huangrunheng 1 year ago
parent
commit
8ad36e1e9b
1 changed files with 2 additions and 0 deletions
  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
                 break
             if name == '金币妖怪' and "金币" in text_ocr:
             if name == '金币妖怪' and "金币" in text_ocr:
                 break
                 break
+            if name == '经验妖怪' and '经验' in text_ocr:
+                break
             if click_timer.reached():
             if click_timer.reached():
                 click_timer.reset()
                 click_timer.reset()
                 self.device.click(x=pos[0] + randint(-5, 5), y=pos[1] + randint(-5, 5))
                 self.device.click(x=pos[0] + randint(-5, 5), y=pos[1] + randint(-5, 5))