Implement land from below, fix attacks not lifting fighters off the ground (#96)
Reviewed-on: #96 Co-authored-by: Álex Román Núñez <eirexe@eirteam.moe>
This commit was merged in pull request #96.
This commit is contained in:
@@ -99,6 +99,8 @@ impl FighterStateImpl for JumpSquatState {
|
||||
|
||||
fn on_exit(&mut self, state_context: &mut crate::fighter::state::ExitContext) {
|
||||
state_context.input.disable_hold_all();
|
||||
// We clear tap jump here, it may have weird interactions with air dodging up
|
||||
state_context.input.clear_command(FighterCommands::TapJump);
|
||||
}
|
||||
|
||||
fn is_visually_grounded<'a>(&'a self) -> bool {
|
||||
@@ -174,7 +176,10 @@ impl FighterStateImpl for JumpState {
|
||||
air::collision_interrupt(
|
||||
state_context,
|
||||
crate::fighter::state::land::LandingType::Normal,
|
||||
true,
|
||||
crate::fighter::collision::AirCollisionOptions {
|
||||
can_pass_through_soft_platforms: true,
|
||||
..Default::default()
|
||||
},
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user