Description
Operating System
Linux x64
DevilutionX version
1.5.4
Describe
Selecting the spell from the speedbook and then using the spell action to cast it will result in the player saying "I can't cast that here" regardless of whether they are in range of another player's corpse. When using the virtual gamepad, nothing happens when you attempt to cast it, not even the voice line.
Attempting to cast the scroll from the inventory will trigger the spellcasting animation and consume the scroll. This should not happen. The only valid way to cast it is via the speedbook.
To Reproduce
- Launch two DevilutionX clients
- Create a TCP game on one client
- Join the TCP game on the other client
- Enter dlvl 1 on both clients
- Kill one of the players
- Hook up a gamepad and attempt to use Resurrect on the dead player
Expected Behavior
Casting Resurrect from the speedbook should enable targeting players. Casting the spell should Resurrect the targeted player. Attempting to use the scroll from the inventory should do nothing.
Additional context
Also tested in 1.6-beta using commit f172c9f. I didn't notice any difference in behavior between 1.5.4 and 1.6.
Note that the scroll's text suggests that it can be used directly from the inventory. This is correct given that the game currently allows it, but since the behavior is wrong that text will also need to be fixed.