Advertisement
kolton

Untitled

May 20th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. this.buildList = function () {
  2. var monsterList = [],
  3. monster = getUnit(1);
  4.  
  5. if (monster) {
  6. do {
  7. if ([345, 346, 347].indexOf(monster.classid) > -1 && Attack.checkMonster(monster)) {
  8. monsterList.push(copyUnit(monster));
  9. }
  10. } while (monster.getNext());
  11. }
  12.  
  13. return monsterList;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement