Advertisement
lengend

Untitled

Nov 22nd, 2012
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     Hurt: function (classId, Percent) {
  2.         if (Config.AttackSkill[1] < 0) {
  3.             return false;
  4.         }
  5.  
  6.         var i, dodgeList, target,
  7.             attackCount = 0;
  8.  
  9.         for (i = 0; i < 3; i += 1) {
  10.             target = getUnit(1, classId);
  11.  
  12.             if (target) {
  13.                 break;
  14.             }
  15.  
  16.             delay(50);
  17.         }
  18.  
  19.         if (!target) {
  20.             throw new Error("Attack.hurt: Target not found");
  21.         }
  22.  
  23.         if (Config.MFLeader) {
  24.             Pather.makePortal();
  25.             say("hurt " + classId);
  26.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement