Add additional color detection for photo capture

This commit is contained in:
Sahik authored and GitHub committed 2026-03-28 16:27:04 +08:00
1 parent 084dc4cdf7
commit c6c6c9c1b1
1 file changed
+1 -1
+1 -1
View File
@@ -120,7 +120,7 @@ while (true) {
// 拍照
if (config.Photo && !isPaused) {
if (images.detectsColor(img, "#B5B5C6", 648, 813)){
if (images.detectsColor(img, "#B5B5C6", 648, 813) && images.detectsColor(img, "#FD7171", 682, 795)){
click(660, 815);
var img = captureScreen();
while(!images.detectsColor(img, "#FFFFFF", 360, 950)){