isid0re / SoloLeveling

The original multi-class single character leveling script for Kolbot. Blizzhackers / Kolbot from level 1 to 99. After the initial setup, the bot will operate without user involvement.

Home Page:https://buymeacoffee.com/isid0re

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.