Hotkeyed spells cast when walking over a stack of items

Issue #230 new
bork created an issue

If a spell is hotkeyed (by pressing m, hovering over a spell and pushing 1-9) it will also trigger when moving with the numpad.

Say the spell Cure Light Wounds is bound to 2. Your character is standing north of a pile of items (appears as *). Pressing 2 on the numpad moves the character south, onto the pile. As per usual, the item list pops up for a brief second before disappearing, however after it closes the spell bound to the key (in this case Cure Light Wounds, bound to key 2) is cast.

Tried with two characters (Druid and Priest), both produced the same results. Attempted on both a fresh re-install and my default, customised game.

Disabling NumLock fixes the issue. Perhaps a bit of text on the main menu stating you should disable it would aid anyone experiencing the same problem.

Comments (4)

  1. RMTEW FULL NAME repo owner

    I'm not sure this can be fixed. However I do have a numpad now, so can play around with it.

  2. soda carpet

    This is caused by having the NumLock key on. Turning off the NumLock will also allow you to view those messages that you say pop up for 1 sec. They are supposed to stay up so you can read them.

    I started a new game to verify. Dropping items in a pile, assigning mage armor to 2 key, and walking onto the pile with 2 key. NumLock on- spell cast, with no popup NumLock off-no spell, item popup like normal

  3. bork reporter

    This also fixes numpad camera movement on the map (L,O)

    I suppose a simple popup stating you should disable NumLock whenever you load up the game would fix the problem. Most people are used to turning it on whenever playing a roguelike.

  4. Log in to comment