You are on page 1of 1

}

switch (typeof classid) {


case "number":
case "string":
monster = getUnit(1, classid);

if (monster) {
do {
if (getDistance(center.x, center.y, monster.x,
monster.y) <= range && (!spectype || (monster.spectype & spectype)) &&
this.checkMonster(monster)) {
monsterList.push(copyUnit(monster));
}
} while (monster.getNext());
}

break;
case "object":

You might also like