zzliux / assttyys_autojs

痒痒鼠安卓辅助,基于Auto.js Pro开发。支持御魂、御灵、业原火、突破、狗粮、百鬼夜行、抽厕纸、逢魔日常、地鬼日常、妖气自动排队、斗技、喂蛋、合结界卡、六道之门、定时寄养等
MIT License
231 stars 56 forks source link

关于关闭buff #12

Closed intxzt closed 1 year ago

intxzt commented 1 year ago

当前在mumu模拟器上执行关闭buff,会连续两次点击已打开的buff,最终导致buff关闭又被打开。

src/common/funcList/040_关闭BUFF.ts

let point = thisScript.findMultiColor('开启的BUFF') || null
            if (point) {
                thisScript.helperBridge.regionClick([
                    [point.x, point.y, point.x + thisOperator[0].oper[0][2], point.y + thisOperator[0].oper[0][3], 300]
                ], thisScript.scheme.commonConfig.afterClickDelayRandom);
                return true
            }

此处return true之前是否应该加sleep?

zzliux commented 1 year ago

这个可能是反应慢导致,之前设置的固定延时是300ms,点击后300ms+随机延时的时间内状态未发生变更,继续判断依然成功,导致脚本点击多次,我尝试改成1500ms试试

intxzt commented 1 year ago

TK