1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2024-11-20 00:46:34 +00:00
This commit is contained in:
jugeeya 2020-07-12 10:39:32 -07:00
commit 8b91b452e5
2 changed files with 21 additions and 2 deletions

View file

@ -184,7 +184,8 @@ pub unsafe fn get_command_flag_cat(
}
// Pause Effect AnimCMD if hitbox visualization is active
MotionAnimcmdModule::set_sleep_effect(module_accessor, true);
// Keep effects on for missed tech effect
MotionAnimcmdModule::set_sleep_effect(module_accessor, status_kind != FIGHTER_STATUS_KIND_DOWN);
EffectModule::set_visible_kind(module_accessor, Hash40::new("sys_shield"), false);
EffectModule::kill_kind(module_accessor, Hash40::new("sys_shield"), false, true);

View file

@ -386,14 +386,32 @@ unsafe fn get_flag(
status: i32,
action_flag: i32,
) -> i32 {
if StatusModule::status_kind(module_accessor) == status {
let current_status = StatusModule::status_kind(module_accessor);
if current_status == status {
// Reset Buffer
reset();
}
// Workaround for Bowser upB
check_bowser_up_b(current_status);
return action_flag;
}
fn check_bowser_up_b(current_status: i32) {
// Grounded up B
if current_status == *FIGHTER_KOOPA_STATUS_KIND_SPECIAL_HI_G {
reset();
return;
}
// Aerial up B
if current_status == *FIGHTER_KOOPA_STATUS_KIND_SPECIAL_HI_A {
reset();
return;
}
}
pub unsafe fn perform_defensive_option() {
reset();