mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-20 08:54:15 +00:00
account for grounded options when mashing in neutral
This commit is contained in:
parent
32f7fb0808
commit
919196c38b
1 changed files with 3 additions and 2 deletions
|
@ -86,8 +86,9 @@ pub unsafe fn get_command_flag_cat(
|
|||
match MENU.mash_attack_state {
|
||||
Nair | Fair | Bair | UpAir | Dair => {
|
||||
*flag |= *FIGHTER_PAD_CMD_CAT1_FLAG_ATTACK_N;
|
||||
// If we are grounded we also need to jump
|
||||
if is_grounded(module_accessor) {
|
||||
// If we are shielding we also need to jump
|
||||
if is_in_shieldstun(module_accessor) ||
|
||||
(is_grounded(module_accessor) && MENU.mash_in_neutral == MashInNeutral::On) {
|
||||
*flag |= *FIGHTER_PAD_CMD_CAT1_FLAG_JUMP_BUTTON;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue