Skip to content

Commit

Permalink
copy ability check for specialn disable
Browse files Browse the repository at this point in the history
  • Loading branch information
ethangarsia517 committed Nov 15, 2024
1 parent 4a2cabd commit dd23111
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fighters/kirby/src/status/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,17 @@ pub unsafe extern "C" fn throw_kirby_map_correction(fighter: &mut L2CFighterComm

/// Prevents side b from being used again in air when it has been disabled by up-b fall
unsafe extern "C" fn ganon_should_use_special_n_callback(fighter: &mut L2CFighterCommon) -> L2CValue {
if fighter.is_situation(*SITUATION_KIND_AIR) && VarModule::is_flag(fighter.battle_object, vars::ganon::instance::DISABLE_SPECIAL_N) {
if WorkModule::get_int(fighter.module_accessor, *FIGHTER_KIRBY_INSTANCE_WORK_ID_INT_COPY_CHARA) == *FIGHTER_KIND_GANON
&& fighter.is_situation(*SITUATION_KIND_AIR) && VarModule::is_flag(fighter.battle_object, vars::ganon::instance::DISABLE_SPECIAL_N) {
false.into()
} else {
true.into()
}
}

unsafe extern "C" fn trail_should_use_special_n_callback(fighter: &mut L2CFighterCommon) -> L2CValue {
if VarModule::is_flag(fighter.battle_object, vars::trail::instance::DISABLE_SPECIAL_N) {
if WorkModule::get_int(fighter.module_accessor, *FIGHTER_KIRBY_INSTANCE_WORK_ID_INT_COPY_CHARA) == *FIGHTER_KIND_TRAIL
&& VarModule::is_flag(fighter.battle_object, vars::trail::instance::DISABLE_SPECIAL_N) {
false.into()
} else {
true.into()
Expand Down

0 comments on commit dd23111

Please sign in to comment.