Skip to content

Commit 45ed3c5

Browse files
committed
fix parry priority OOS
1 parent 0279ed6 commit 45ed3c5

File tree

1 file changed

+7
-7
lines changed
  • fighters/common/src/general_statuses/shield

1 file changed

+7
-7
lines changed

fighters/common/src/general_statuses/shield/misc.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,13 @@ pub unsafe fn sub_guard_cont(fighter: &mut L2CFighterCommon) -> L2CValue {
425425
return true.into();
426426
}
427427

428+
// check parry
429+
if fighter.is_parry_input() {
430+
fighter.change_status(FIGHTER_STATUS_KIND_GUARD_OFF.into(), true.into());
431+
VarModule::on_flag(fighter.object(), vars::common::instance::IS_PARRY_FOR_GUARD_OFF);
432+
return true.into();
433+
}
434+
428435
// check jump
429436
if
430437
fighter.sub_check_button_jump().get_bool() ||
@@ -452,13 +459,6 @@ pub unsafe fn sub_guard_cont(fighter: &mut L2CFighterCommon) -> L2CValue {
452459
return true.into();
453460
}
454461

455-
// check parry
456-
if fighter.is_parry_input() {
457-
fighter.change_status(FIGHTER_STATUS_KIND_GUARD_OFF.into(), true.into());
458-
VarModule::on_flag(fighter.object(), vars::common::instance::IS_PARRY_FOR_GUARD_OFF);
459-
return true.into();
460-
}
461-
462462
return false.into();
463463
}
464464

0 commit comments

Comments
 (0)