From 28ad032a2f55d733246e2de97973962ccc7cbc4f Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Tue, 7 Dec 2021 01:37:45 +0100 Subject: [PATCH] :bug: [gamepad] Fix casting lightningwalls Fixes #3694 --- Source/controls/plrctrls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/controls/plrctrls.cpp b/Source/controls/plrctrls.cpp index c8adb67f7..b6532198c 100644 --- a/Source/controls/plrctrls.cpp +++ b/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; }