blizzhackers / kolbot

d2bs: core + d2bot (noah) + kolbot libs (kolton) | January 2020's clone of https://github.com/kolton/d2bot-with-kolbot/ + further development
247 stars 160 forks source link

Weapons not switching back to primary with `Config.TeleSwitch` enabled #390

Open samlitowitz opened 11 months ago

samlitowitz commented 11 months ago

Before filling this out

  1. Check The documentation repo to see if your answer is there.
  2. Check that your download is up to date.
  3. Search though existing open and closed issues to ensure this is not a duplicate.
  4. Is it really a bug? If you are unsure then join the discord server and ask about it first.

Describe the bug When Config.TeleSwitch is enabled, weapons are not be switch back to the primary set before attacking.

Can you reproduce it?

  1. Set Config.TeleSwitch = true
  2. Set Config.PrimarySlot = 0 where Slot I has your damage weapons and Slot II has your teleport weapons
  3. Run a bot which teleports more than five nodes without attacking (to engage teleport switching) and then attacks something
  4. Note that then the bot begins to attack it is still using Slot II (teleport weapons) and not Slot I (primary weapons)

Expected behavior

  1. When the bot begins to attack I expect it to use the primary weapons slot as configured

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.