1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-16 11:26:11 +00:00

add in ground bounce, ceiling, wall techs

This commit is contained in:
jugeeya 2020-06-03 09:45:37 -07:00
parent 6d89c0bcc7
commit a577e7874b

View file

@ -14,7 +14,7 @@ pub unsafe fn handle_change_status(fighter: &mut L2CFighterBase, status_kind: L2
let module_accessor = sv_system::battle_object_module_accessor(fighter.lua_state_agent);
if is_training_mode() && is_operation_cpu(module_accessor) {
let status_kind_int = status_kind.try_get_int().unwrap_or(*FIGHTER_STATUS_KIND_WAIT as u64) as i32;
if status_kind_int == FIGHTER_STATUS_KIND_DOWN {
if status_kind_int == FIGHTER_STATUS_KIND_DOWN || status_kind_int == FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_D {
match MENU.tech_state {
TechOption::Random => {
let random_statuses = vec![
@ -41,6 +41,16 @@ pub unsafe fn handle_change_status(fighter: &mut L2CFighterBase, status_kind: L2
}
_ => (),
}
} else if status_kind_int == FIGHTER_STATUS_KIND_STOP_WALL || status_kind_int == FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_LR {
if MENU.tech_state != TechOption::None && MENU.tech_state != TechOption::Miss {
status_kind = L2CValue::new_int(*FIGHTER_STATUS_KIND_PASSIVE_WALL as u64);
unk = L2CValue::new_bool(true);
}
} else if status_kind_int == FIGHTER_STATUS_KIND_STOP_CEIL || status_kind_int == FIGHTER_STATUS_KIND_DAMAGE_FLY_REFLECT_U {
if MENU.tech_state != TechOption::None && MENU.tech_state != TechOption::Miss {
status_kind = L2CValue::new_int(*FIGHTER_STATUS_KIND_PASSIVE_CEIL as u64);
unk = L2CValue::new_bool(true);
}
}
}