Throttle lightning fury in `ClassAttackOverrides.js` greatly reduces its use
WikiNeo opened this issue · comments
I notice that Amazon rarely uses lightning fury now.
During a pit run, it only uses the lightning fury twice. I wonder if this is intended.
ClassAttackOverrides.js
if (Attack.checkResist(unit, checkSkill)) {
switch (checkSkill) {
case 35: // throttle lightning fury
if (mobList.length > 3 && (Math.round(getDistance(me, unit)) > Skill.getRange(checkSkill) || checkCollision(me, unit, 0x4))) {
D2Bot.printToConsole('Using lightning fury')
timedSkill = checkSkill;
}
break;
default:
timedSkill = checkSkill;
break;
}
} else if (Config.AttackSkill[5] > -1 && Attack.checkResist(unit, Config.AttackSkill[5]) && ([56, 59].indexOf(Config.AttackSkill[5]) === -1 || Attack.validSpot(unit.x, unit.y))) {
timedSkill = Config.AttackSkill[5];
}
Thanks for posting. I've starting going thru the zon attacks and saw some problems with how it was written initially. I wouldn't have looked if you didnt post so thank you. I will be updating the amazon attacks and push an update soon.