Skip to content

Commit 0e47b8e

Browse files
authored
Merge pull request #2265 from jdipalermo27/gunner-shine
Fix Mii Gunner Shine
2 parents f1f76a3 + 76814fa commit 0e47b8e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

fighters/miigunner/src/opff.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,9 @@ unsafe fn nspecial_cancels(boma: &mut BattleObjectModuleAccessor) {
8282
}
8383

8484
unsafe fn reflector_jc(boma: &mut BattleObjectModuleAccessor) {
85+
if boma.is_status(*FIGHTER_STATUS_KIND_SPECIAL_LW) && WorkModule::get_int(boma, *FIGHTER_INSTANCE_WORK_ID_INT_FRAME_IN_AIR) <= 1 {
86+
GroundModule::correct(boma, app::GroundCorrectKind(*GROUND_CORRECT_KIND_GROUND));
87+
}
8588
if boma.is_status_one_of(&[
8689
*FIGHTER_MIIGUNNER_STATUS_KIND_SPECIAL_LW1_HIT,
8790
*FIGHTER_MIIGUNNER_STATUS_KIND_SPECIAL_LW1_END,
@@ -292,7 +295,7 @@ pub unsafe fn moveset(fighter: &mut L2CFighterCommon, boma: &mut BattleObjectMod
292295
laser_blaze_ff_land_cancel(boma);
293296
remove_homing_missiles(boma);
294297
missile_land_cancel(boma);
295-
arm_rocket_airdash(fighter);
298+
arm_rocket_airdash(fighter);
296299
lunar_launch_actionability(fighter);
297300
lunar_launch_reset(fighter);
298301
lunar_launch_effect_reset(fighter);
@@ -303,7 +306,7 @@ pub unsafe fn moveset(fighter: &mut L2CFighterCommon, boma: &mut BattleObjectMod
303306
pub extern "C" fn miigunner_frame_wrapper(fighter: &mut smash::lua2cpp::L2CFighterCommon) {
304307
unsafe {
305308
common::opff::fighter_common_opff(fighter);
306-
miigunner_frame(fighter)
309+
miigunner_frame(fighter)
307310
}
308311
}
309312

@@ -346,4 +349,4 @@ pub fn install() {
346349
smashline::Agent::new("miigunner_supermissile")
347350
.on_line(Main, miigunner_missile_frame)
348351
.install();
349-
}
352+
}

0 commit comments

Comments
 (0)