Skip to content

Commit

Permalink
Merge pull request #2472 from jaccob101/virus
Browse files Browse the repository at this point in the history
Daisy- Jump Momentum Fix
  • Loading branch information
moklmaru authored Jul 30, 2024
2 parents 1584144 + 4aadaa9 commit 6c896bd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fighters/daisy/src/status/attack_air.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ use super::*;

// FIGHTER_STATUS_KIND_ATTACK_AIR

unsafe extern "C" fn attack_air_pre(fighter: &mut L2CFighterCommon) -> L2CValue {
WorkModule::on_flag(fighter.module_accessor, *FIGHTER_INSTANCE_WORK_ID_FLAG_JUMP_NO_LIMIT_ONCE);
smashline::original_status(Pre, fighter, *FIGHTER_STATUS_KIND_ATTACK_AIR)(fighter)
}

unsafe extern "C" fn attack_air_main(fighter: &mut L2CFighterCommon) -> L2CValue {
let ret = smashline::original_status(Main, fighter, *FIGHTER_STATUS_KIND_ATTACK_AIR)(fighter);
if !fighter.global_table[SUB_STATUS].get_bool() {
Expand All @@ -15,5 +20,6 @@ unsafe extern "C" fn attack_air_main(fighter: &mut L2CFighterCommon) -> L2CValue
}

pub fn install(agent: &mut Agent) {
agent.status(Pre, *FIGHTER_STATUS_KIND_ATTACK_AIR, attack_air_pre);
agent.status(Main, *FIGHTER_STATUS_KIND_ATTACK_AIR, attack_air_main);
}

0 comments on commit 6c896bd

Please sign in to comment.