From e734191b56db15677f1cb9413487a5345e3f6db6 Mon Sep 17 00:00:00 2001 From: uramer Date: Tue, 2 Jan 2024 14:40:03 +0100 Subject: [PATCH] Add clarifying comment --- files/data/scripts/omw/playercontrols.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/files/data/scripts/omw/playercontrols.lua b/files/data/scripts/omw/playercontrols.lua index 289d3144dc..ec7d0d238e 100644 --- a/files/data/scripts/omw/playercontrols.lua +++ b/files/data/scripts/omw/playercontrols.lua @@ -198,6 +198,8 @@ input.registerActionHandler('Use', async:callback(function(value) if value and combatAllowed() then startUse = true end end)) local function processAttacking() + -- for spell-casting, set controls.use to true for exactly one frame + -- otherwise spell casting is attempted every frame while Use is true if Actor.stance(self) == Actor.STANCE.Spell then self.controls.use = startUse and 1 or 0 else