From 2b56ab327ca5631dcc7a6e973bf79dae11d1327e Mon Sep 17 00:00:00 2001 From: Alexei Kotov Date: Sun, 19 Feb 2023 02:59:33 +0300 Subject: [PATCH] Only attempt attacks in an attack stance --- files/data/scripts/omw/playercontrols.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/data/scripts/omw/playercontrols.lua b/files/data/scripts/omw/playercontrols.lua index 823744887b..df4bfe877a 100644 --- a/files/data/scripts/omw/playercontrols.lua +++ b/files/data/scripts/omw/playercontrols.lua @@ -131,7 +131,7 @@ local function onInputAction(action) if action == input.ACTION.Jump then attemptJump = true elseif action == input.ACTION.Use then - startAttack = true + startAttack = Actor.stance(self) ~= Actor.STANCE.Nothing elseif action == input.ACTION.AutoMove and not movementControlsOverridden then autoMove = not autoMove elseif action == input.ACTION.AlwaysRun and not movementControlsOverridden then