You are on page 1of 1

monsterList = [];

target = getUnit(1);

if (target) {
do {
if ((!spectype || (target.spectype & spectype)) &&
this.checkMonster(target) && this.skipCheck(target)) {
// Speed optimization - don't go through monster
list until there's at least one within clear range
if (!start && getDistance(target, orgx, orgy) <=
range &&
(me.getSkill(54, 1) || !
Scripts.Follower || !checkCollision(me, target, 0x1))) {
start = true;
}

monsterList.push(copyUnit(target));
}
} while (target.getNext());
}

while (start && monsterList.length > 0 && attackCount < 300) {


if (boss) {
orgx = boss.x;
orgy = boss.y;

You might also like