Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Hurt: function (classId, Percent) {
- if (Config.AttackSkill[1] < 0) {
- return false;
- }
- var i, dodgeList, target,
- attackCount = 0;
- for (i = 0; i < 3; i += 1) {
- target = getUnit(1, classId);
- if (target) {
- break;
- }
- delay(50);
- }
- if (!target) {
- throw new Error("Attack.hurt: Target not found");
- }
- if (Config.MFLeader) {
- Pather.makePortal();
- say("hurt " + classId);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement