Browse Source

🐛 [gamepad] Fix casting lightningwalls

Fixes #3694
pull/3701/head
Anders Jenbo 4 years ago
parent
commit
28ad032a2f
  1. 2
      Source/controls/plrctrls.cpp

2
Source/controls/plrctrls.cpp

@ -1436,7 +1436,7 @@ bool SpellHasActorTarget()
if (spl == SPL_TOWN || spl == SPL_TELEPORT)
return false;
if (spl == SPL_FIREWALL && pcursmonst != -1) {
if (IsAnyOf(spl, SPL_FIREWALL, SPL_LIGHTWALL) && pcursmonst != -1) {
cursPosition = Monsters[pcursmonst].position.tile;
}

Loading…
Cancel
Save