diff --git a/src/fighter/state/hitstun.rs b/src/fighter/state/hitstun.rs index 33cb905..cb7d9e8 100644 --- a/src/fighter/state/hitstun.rs +++ b/src/fighter/state/hitstun.rs @@ -11,8 +11,7 @@ use crate::{ land::LandingType, wait::WaitState, }, - }, - math::int::FGi32, + }, math::{int::FGi32, vec::FGVec2}, }; #[derive(Clone, Debug, Hash)] @@ -103,6 +102,7 @@ impl FighterStateImpl for HitstunState { HitstopStateKind::Airborne => AnimKind::FlinchAir, }; state_context.play_animation(animation, false); + state_context.velocity.0 = FGVec2::ZERO; } fn on_exit(&mut self, _state_context: &mut ExitContext) {}