Skip to main content

run_replace_damage

Function run_replace_damage 

Source
pub fn run_replace_damage(
    game: &mut GameState,
    event: &mut ReplacementEvent,
) -> ReplacementResult
Expand description

Apply replacement effects specifically for damage events.

Delegates to apply_replacements. This is a convenience entry point matching Java’s batch-damage processing path in ReplacementHandler.

Mirrors Java ReplacementHandler.runReplaceDamage().