kolton / d2bot-with-kolbot

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

Recast Oak Sage as soon as it is killed #1988

Open Scottqwerty opened 4 years ago

Scottqwerty commented 4 years ago

I have noticed in the death log of my druid that all its deaths are without oak sage based on the life amount. I have tried forcing oak to be case as the preattack but that makes things worse as preattack gets cast into mobs and killed quickly.

I have thought of two solutions that would fix this but am not sure how to implement it; 1) similar to mercwatch, when oak is killed return to town and do precast 2) When oak is killed, cast oak 180 degrees from the target monster

Has anyone run into this and found a solution?

mf022 commented 4 years ago
1. similar to mercwatch, when oak is killed return to town and do precast

maybe you should try to change https://github.com/kolton/d2bot-with-kolbot/blob/master/d2bs/kolbot/libs/common/Precast.js#L293-L295 into:

            if (Config.SummonSpirit === 1 && me.getSkill(226, 1)  && (!me.getState(149) || force)) {
                if (me.inTown) {
                    Skill.cast(226, 0); // Oak Sage
                } else if (!me.inTown) {
                    Town.goToTown();
                    Skill.cast(226, 0); // Oak Sage
                    Pather.usePortal(null, me.name);
                }               
            }