1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-06-03 01:59:17 +00:00

Fix shieldgrabs (#341)

This commit is contained in:
asimon-1 2022-05-07 13:59:28 -04:00 committed by GitHub
parent e5d614100f
commit adef866456
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 4 deletions
src/training

View file

@ -152,7 +152,7 @@ fn should_buffer(module_accessor: &mut app::BattleObjectModuleAccessor) -> bool
} }
// Temp Translation // Temp Translation
pub fn buffer_menu_mash() -> Action { pub fn buffer_menu_mash() {
unsafe { unsafe {
let action = MENU.mash_state.get_random(); let action = MENU.mash_state.get_random();
buffer_action(action); buffer_action(action);
@ -160,8 +160,6 @@ pub fn buffer_menu_mash() -> Action {
full_hop::roll_full_hop(); full_hop::roll_full_hop();
fast_fall::roll_fast_fall(); fast_fall::roll_fast_fall();
FALLING_AERIAL = MENU.falling_aerials.get_random().into_bool(); FALLING_AERIAL = MENU.falling_aerials.get_random().into_bool();
action
} }
} }

View file

@ -218,7 +218,8 @@ unsafe fn mod_handle_sub_guard_cont(fighter: &mut L2CFighterCommon) {
return; return;
} }
let action = mash::buffer_menu_mash(); mash::buffer_menu_mash();
let action = mash::get_current_buffer();
if handle_escape_option(fighter, module_accessor) { if handle_escape_option(fighter, module_accessor) {
return; return;