function TargetMonster(num) { return function() {
var pane = document.getElementById('pane_effects'),effects = pane.getElementsByTagName('img'), n = effects.length,duration;//这些我也不知道是啥,作者就是这样取得,后面遍历的duration中存的
//就是buff信息
while ( n-- > 3 ) {//这个三是我自动释放的数量
if ( (duration = effects[n].getAttribute('onmouseover').match(regexp.duration)) ) {//这里还是按照作者的写法
var name = duration[0].split(",") //"'Regen', 'The holy effects of the spell are restoring your body.', 78" 这是取到的名称和描述
if(duration[3] < 3 && name[0] === "'Regen'" ) {Cast('Regen')();return};//你的魔法
if(duration[3] < 3 && name[0] === "'Replenishment'" ) {Use(2)();return};//你的道具的位置,从1开始
}}
if(parseInt(document.querySelector('img[src$="green.png"]').style.width) <= 414 *
网页链接 && cfg.colours.lowhp){Cast('Cure')();return};//这里是低血量时自动回复,也可以用Strongest,从后往前
for(var xxxxw=0;xxxxw<monsters.length;xxxxw++){//下面被我魔改了,可以不用管
if(monsters[xxxxw] && monsters[xxxxw].hasAttribute('onclick')){
monsters[xxxxw].click();
break;
}
} };}