kolton / d2bot-with-kolbot

d2bot game manager by D3STROY3R with kolbot libs by kolton for d2bs
346 stars 332 forks source link

Change the distance of attack with Tornado.. I've been searching forever .. can't seem to find where this is at #2813

Open Apocalypse-88 opened 4 years ago

Apocalypse-88 commented 3 years ago

I'm sure someone knows this..

ARkaine2 commented 3 years ago

Not sure.

But in ...\KolBot\D2BS\KolBot\Libs\Common\Attacks\Druid.js

            case 245: // Tornado
                if (Math.round(getDistance(me, unit)) > Skill.getRange(timedSkill) || checkCollision(me, unit, 0x4)) {
                    if (!Attack.getIntoPosition(unit, Skill.getRange(timedSkill), 0x4)) {
                        return 0;
                    }
                }

You probably can try to change to someting like this:

            case 245: // Tornado
                if (Math.round(getDistance(me, unit)) > Skill.getRange(timedSkill) || checkCollision(me, unit, 0x4)) {
                    if (!Attack.getIntoPosition(unit, 4, 0x4)) {
                        return 0;
                    }
                }

Or maybe you should edit Attack.js.