Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copy Ability Fixes #2243

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fighters/kirby/src/opff.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1116,14 +1116,14 @@ pub unsafe fn lucas_offense_charge(fighter: &mut smash::lua2cpp::L2CFighterCommo

// Piranha Plant Ptooie Stance
pub unsafe fn packun_ptooie_stance(fighter: &mut smash::lua2cpp::L2CFighterCommon, boma: &mut BattleObjectModuleAccessor, status_kind: i32) {
if fighter.is_status(*FIGHTER_KIRBY_STATUS_KIND_SPECIAL_N_SWALLOW) {
if fighter.is_status(*FIGHTER_KIRBY_STATUS_KIND_SPECIAL_N_SWALLOW_WAIT) {
let opponent_boma = fighter.get_grabbed_opponent_boma();
let grabbed_fighter = smash::app::utility::get_kind(opponent_boma);
if grabbed_fighter == *FIGHTER_KIND_PACKUN {
let old_stance = VarModule::get_int(boma.object(), vars::packun::instance::CURRENT_STANCE);
let new_stance = VarModule::get_int(opponent_boma.object(), vars::packun::instance::CURRENT_STANCE);
if new_stance != old_stance {
// println!("Copying Packun Flower's Current Stance, which is {}", new_stance);
// println!("Copying Pirahna Plant's Current Stance, which is {}", new_stance);
VarModule::set_int(boma.object(), vars::packun::instance::CURRENT_STANCE, new_stance);
}
}
Expand Down
3 changes: 2 additions & 1 deletion fighters/kirby/src/status.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ pub fn install() {
gaogaen_special_n::install();
ridley_special_n::install();
ganon_special_n::install();
diddy_special_n_cancel::install();
koopa_special_n::install();
luigi_special_n::install();
mario_special_n::install();
Expand All @@ -39,7 +40,7 @@ pub fn add_statuses() {
special_hi_h::install();
ganon_special_n_float::install();
littlemac_special_n_cancel::install();
diddy_special_n_cancel::install();
diddy_special_n_cancel::install_custom();
}

#[smashline::fighter_init]
Expand Down
Loading