@@ -60,9 +60,7 @@ pub unsafe fn init_attack_air(fighter: &mut L2CFighterCommon) -> L2CValue {
60
60
61
61
fighter. sub_attack_air_kind ( ) ;
62
62
if motion_kind == smash:: hash40 ( "jump_aerial_f" ) || motion_kind == smash:: hash40 ( "jump_aerial_b" ) {
63
- if !WorkModule :: is_flag ( fighter. module_accessor , * FIGHTER_INSTANCE_WORK_ID_FLAG_IGNORE_2ND_MOTION )
64
- && ( ControlModule :: check_button_on ( fighter. module_accessor , * CONTROL_PAD_BUTTON_JUMP )
65
- || MotionModule :: frame_2nd ( fighter. module_accessor ) < 2.0 ) {
63
+ if !WorkModule :: is_flag ( fighter. module_accessor , * FIGHTER_INSTANCE_WORK_ID_FLAG_IGNORE_2ND_MOTION ) {
66
64
MotionModule :: add_motion_2nd ( fighter. module_accessor , Hash40 :: new_raw ( motion_kind) , frame, 1.0 , false , 1.0 ) ;
67
65
MotionModule :: set_weight ( fighter. module_accessor , 1.0 , true ) ;
68
66
KineticModule :: change_kinetic ( fighter. module_accessor , * FIGHTER_KINETIC_TYPE_JUMP_AERIAL_MOTION_2ND ) ;
@@ -135,9 +133,7 @@ unsafe extern "C" fn sub_attack_air_n(fighter: &mut L2CFighterCommon) {
135
133
return ;
136
134
}
137
135
}
138
- if !WorkModule :: is_flag ( fighter. module_accessor , * FIGHTER_INSTANCE_WORK_ID_FLAG_IGNORE_2ND_MOTION )
139
- && ( ControlModule :: check_button_on ( fighter. module_accessor , * CONTROL_PAD_BUTTON_JUMP )
140
- || MotionModule :: frame_2nd ( fighter. module_accessor ) < 2.0 ) {
136
+ if !WorkModule :: is_flag ( fighter. module_accessor , * FIGHTER_INSTANCE_WORK_ID_FLAG_IGNORE_2ND_MOTION ) {
141
137
MotionModule :: add_motion_2nd ( fighter. module_accessor , Hash40 :: new_raw ( motion_kind) , frame, 1.0 , false , 1.0 ) ;
142
138
MotionModule :: set_weight ( fighter. module_accessor , 1.0 , true ) ;
143
139
KineticModule :: change_kinetic ( fighter. module_accessor , * FIGHTER_KINETIC_TYPE_JUMP_AERIAL_MOTION_2ND ) ;
@@ -220,9 +216,7 @@ unsafe extern "C" fn sub_attack_air_f(fighter: &mut L2CFighterCommon) {
220
216
return ;
221
217
}
222
218
}
223
- if !WorkModule :: is_flag ( fighter. module_accessor , * FIGHTER_INSTANCE_WORK_ID_FLAG_IGNORE_2ND_MOTION )
224
- && ( ControlModule :: check_button_on ( fighter. module_accessor , * CONTROL_PAD_BUTTON_JUMP )
225
- || MotionModule :: frame_2nd ( fighter. module_accessor ) < 2.0 ) {
219
+ if !WorkModule :: is_flag ( fighter. module_accessor , * FIGHTER_INSTANCE_WORK_ID_FLAG_IGNORE_2ND_MOTION ) {
226
220
MotionModule :: add_motion_2nd ( fighter. module_accessor , Hash40 :: new_raw ( motion_kind) , frame, 1.0 , false , 1.0 ) ;
227
221
MotionModule :: set_weight ( fighter. module_accessor , 1.0 , true ) ;
228
222
KineticModule :: change_kinetic ( fighter. module_accessor , * FIGHTER_KINETIC_TYPE_JUMP_AERIAL_MOTION_2ND ) ;
0 commit comments