Closed intxzt closed 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?
这个可能是反应慢导致,之前设置的固定延时是300ms,点击后300ms+随机延时的时间内状态未发生变更,继续判断依然成功,导致脚本点击多次,我尝试改成1500ms试试
TK
当前在mumu模拟器上执行关闭buff,会连续两次点击已打开的buff,最终导致buff关闭又被打开。
src/common/funcList/040_关闭BUFF.ts
此处return true之前是否应该加sleep?