ilpersi / BHBot

A bot that automates a game called Bit Heroes
GNU General Public License v3.0
28 stars 32 forks source link

autoRune is failing when no Switch alternatives are available #183

Open ilpersi opened 3 years ago

ilpersi commented 3 years ago

Describe the bug When autoRune is enabled it assumes that all the players can switch runes. This is not true for low-level characters

To Reproduce The assumption is: you have a low-level character that has no switching options in rune selection

  1. Enable autoRune settings
    autoRuneDefault experience
    autoRune d capture; g item_find; w item_find
    autoBossRune r item_find; e item_find; t item_find; d capture
  2. Wait for autoRune configuration to trigger
  3. See error

Generated error

16:52:25,711 INFO - Configuring autoRunes for World Boss 16:52:25,718 DEBUG - Left minor rune needs to be switched. 16:52:37,124 DEBUG - common_experience equipped in left slot. 16:52:37,137 DEBUG - common_item_find equipped in right slot. 16:52:37,137 DEBUG - Switching left minor rune. 16:52:44,192 ERROR - Failed to find rune switch button. 16:52:44,193 ERROR - Failed to switch left minor rune. 16:52:44,205 INFO - AutoRune failed!

Expected behavior The bot will skip when the switch button is not available

Screenshots See below

Settings See steps to reproduce

Desktop (please complete the following information):

crash_20201101_3