[][src]Function smash::app::lua_bind::AttackModule::is_infliction_status

pub unsafe extern "C" fn is_infliction_status(
    arg1: *mut BattleObjectModuleAccessor,
    arg2: c_int
) -> bool

Returns whether or not you have hit something during the current status

Arguments

Example

// transition to instantly to WAIT when you've hit someone in the current status and are holding shield
if AttackModule::is_infliction_status(module_accessor, *COLLISION_KIND_MASK_HIT) && ControlModule::check_button_on(module_accessor, *CONTROL_PAD_BUTTON_GUARD) {
    StatusModule::change_status_request_from_script(module_accessor, *FIGHTER_STATUS_KIND_WAIT, true);
}