1
0
Fork 0
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:
jugeeya 2020-06-12 23:04:05 -07:00
parent 32f7fb0808
commit 919196c38b

View file

@ -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;
}
}