-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spell casting menu will always choose the 1st option #76042
Comments
My menu is not casting the first, but is casting wrong spells. |
Downgrading my game version to before the 2024-08-29-0114 release fixed it for me, so I'd guess it has something to do with #75624 |
I have arround 20 spells and its changing ALL of them to other spells when clicking/cursor select/shortcut press is consistent in that run of the game and using that spell will allways cast the same other wrong one, but closing and opening the game seems to sometimes switch the wrong spells for other different wrong spells. |
This fixes the issue for me as well. |
Yeah same thing happening to me |
Alright so I debugged and looked into it, the problem seems to be specifically in handle_action.cpp, the spell list returns a selected index, but the spell list in the ui with the hotkeys is sorted, while the one in handle_action.cpp that it references with |
the wrong spell to be cast currently selecting a spell in a long sorted spell list will cast the wrong spell due to select spell returing a sorted spell id while handle_action.cpp looks only at the unsorted spells fixes CleverRaven#76042 Fix an issue where trying to cast a spell causes the wrong spell to be cast
Describe the bug
In the most recent experimental as of this posting if you cast any spell on your spell list it will choose the spell at the top of the spell list over anything you select even if you make a custom hotkey for that spell.
Attach save file
N/A
Steps to reproduce
1)Create a character
2)Learn multiple spells such as learning Spider Climb.
3)You have the Spider Climb spell and the Magus Rune spell for being in the Magus school.
4)Your spell list is:
a)Magus Rune
b)Spider Climb
5)Use Spider Climb and it will cast Magus Rune.
6)Change the hotkey of Magus Run to a lower letter like z.
a)Spider Climb
z)Magus Rune
7)Cast Magus Rune and it will cast Spider Climb instead.
Expected behavior
Should cast the spell you select but will always pick the spell highest on the list of spells.
Screenshots
N/a
Versions and configuration
Experimental 2024-8-30-0021
Additional context
No response
The text was updated successfully, but these errors were encountered: