昨天群里有个盗贼发了个宏
乍一看这个条件判断语句写的好像没有问题,语句的判断条件是:
1.当存在焦点,且按键模式为alt时,选取该焦点单位为目标释放致盲。
2.对鼠标指向的单位释放致盲。
3.否则释放致盲,目标应为默认的当前目标。
但当我上网尝试时,我发现Mad确实无法按下电流键致盲,前两种情况都可以实施。也就是说,前两个判断条件是有效的。
[En]
But when I went online to try, I found that Mad was really unable to press the current button to cause blindness, and the first two cases could be implemented. That is to say, the first two judgment conditions are valid.
于是我便开始了我的排除法调试之路。
首先,前两项可以执行,表明语句可以进入判断条件,也就是之前的确认没有问题。
[En]
First of all, the first two items can be executed, indicating that the statement can enter the judgment condition, that is, the previous affirmation is no problem.
所以从后面试一试,在这条语句之后添加一段测试代码,它看起来像这样。
[En]
So try it from the back, add a piece of test code after this statement, and it looks like this.