From 3fbfc07b41f6f110ee1e42eeba6edf130a17daf5 Mon Sep 17 00:00:00 2001 From: Nilton Constantino Date: Mon, 8 Jun 2026 14:10:04 +0100 Subject: [PATCH] fix grounded on dash window --- .../Sentinel/StateMachine/States/SentinelStateDashWindow.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Intrepid/Gameplay/Entities/Sentinel/StateMachine/States/SentinelStateDashWindow.cs b/Assets/Scripts/Intrepid/Gameplay/Entities/Sentinel/StateMachine/States/SentinelStateDashWindow.cs index f78e387..83c456c 100644 --- a/Assets/Scripts/Intrepid/Gameplay/Entities/Sentinel/StateMachine/States/SentinelStateDashWindow.cs +++ b/Assets/Scripts/Intrepid/Gameplay/Entities/Sentinel/StateMachine/States/SentinelStateDashWindow.cs @@ -67,7 +67,9 @@ namespace Intrepid.Gameplay.Entities.Sentinel.StateMachine.States private bool CheckDash() { - if (Brain.Inputs.Dash()) + // this could be a feature to be unlocked + // if (Brain.Inputs.Dash()) + if (Brain.Entity.IsGrounded && Brain.Inputs.Dash()) { Brain.ChangeState(SentinelStateType.Dash); return true;