|
/**
* @filename Summoner.js
* @author kolton
* @desc kill the Summoner
*/
function Summoner() {
Town.doChores();
Pather.useWaypoint(74);
Precast.doPrecast(true);
if (Config.Summoner.FireEye) {
if (!Pather.usePortal(null)) {
throw new Error("Failed to move to Fire Eye");
}
Attack.clear(15, 0, getLocaleString(2885)); // Fire Eye
if (!Pather.usePortal(null)) {
throw new Error("Failed to move to Summoner");
}
}
if (!Pather.moveToPreset(me.area, 2, 357, -3, -3)) {
//throw new Error("Failed to move to Summoner");
//Attack.clear(2, 355, -2);
}
Attack.clear(15, 0, 250); // The Summoner
return true;
}
每次进去标红处都报错,如何修改代码让角色不能到达指定位置的时候执行Attack.clear?
|
|