[PR #4018] [MERGED] Mace smash on another player: Wind Burst launches the attacker, the fall stops #5362

Closed
opened 2026-11-03 05:12:03 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4018
Author: @xFedeT
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/30/2026
Merged by: @levzzz5154

Base: main ← Head: fix/wind-burst-smash


📝 Commits (4)

  • 88b9342 Mace smash on another player: the attacker's side of hurtEnemy and the Wind Burst launch
  • 3931417 Merge remote-tracking branch 'origin/main' into fix/wind-burst-smash
  • 58853fd Merge main into fix/wind-burst-smash (resolve tools/lan_e2e.py)
  • 6d67bf4 Merge main into fix/wind-burst-smash (resolve tools/lan_e2e.py)

📊 Changes

5 files changed (+93 additions, -5 deletions)

View changed files

📝 crates/horizon-client/src/game/enchant_effects.rs (+1 -1)
📝 crates/horizon-client/src/game/lan_actions.rs (+3 -0)
📝 crates/horizon-client/src/game/lan_pvp.rs (+18 -0)
📝 crates/horizon-client/src/game/mace.rs (+38 -4)
📝 tools/lan_e2e.py (+33 -0)

📄 Description

🤖 Opened by Federico's AI agent (Claude), not by Federico himself.

Fixes #3830. Checked: no open PR touches the mace or Wind Burst on players (#2730 fixed the launch for mobs and server players long ago). The issue is not claimed in Kira yet (claim limits); I left a comment on it and will claim it when it frees up.

What and why

Smashing another player with a Wind Burst mace did not launch the attacker, while smashing a mob did. A hit on a mob goes through weapon_hit (Player.itemAttackInteraction: MaceItem.hurtEnemy stops the fall and waives its damage, the post_attack explosion of Wind Burst fires on the attacker, postHurtEnemy wears the weapon). The player-versus-player path (pvp_strike/pvp_land) dealt the smash damage but never ran any of that: no Wind Burst, no smash sound, no fall stop (so the attacker also took the fall damage), no weapon wear. It affects the host smashing a guest and a guest smashing the host or another guest, i.e. every player on a server.

Change

  • game/mace.rs: weapon_hit_player is the weapon's side of a hit that hurt another player: the smash's effects on the attacker (shared with the mob path as mace_smash_self), the weapon's "used" stat, the post_attack explosions (Wind Burst), the fall reset and the weapon wear.
  • game/lan_pvp.rs and game/lan_actions.rs: call it after a hit that hurt the victim, as the host or as the guest in turn.
  • game/enchant_effects.rs: post_attack_bursts is visible to it.

Vanilla reference

Player.itemAttackInteraction, MaceItem.hurtEnemy, MaceItem.postHurtEnemy, the Wind Burst minecraft:post_attack explode effect.

Testing

  • New lan_e2e --check wind_burst_player: the host and then a guest fall 9 blocks onto the other player with a Wind Burst I mace and click. After the smash the attacker rises back to about its starting height (79.8 from 80). On main it falls to the ground instead.
  • A smash on a mob already launched (checked with the same setup: 3, 6 and 10 blocks, Wind Burst I and III, host and guest).
  • pr_ready --quick (Python 3.12): Python tests, rustfmt and clippy pass; horizon-client tests: 687 pass, 1 fails on main too (entity_nbt::axolotl_nbt_tests::bucket_cooldown_and_brain_memories_survive_and_expired_cooldown_is_removed, open fix #3851).

Not done here

The dust pillar and the knockback of the other entities around the target (MaceItem.knockback) for a smash on a player, and ignite/mob effects of other post-attack enchantments on a player victim: they need the victim excluded from the area push and are separate changes.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/4018 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/30/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/wind-burst-smash` --- ### 📝 Commits (4) - [`88b9342`](https://github.com/horizon-rust/horizon/commit/88b9342ffcdd0ba1dfbffe6a301f8c972bea16f5) Mace smash on another player: the attacker's side of hurtEnemy and the Wind Burst launch - [`3931417`](https://github.com/horizon-rust/horizon/commit/39314175e99fa5c8ce470209d7cb0bb5e5dfe58a) Merge remote-tracking branch 'origin/main' into fix/wind-burst-smash - [`58853fd`](https://github.com/horizon-rust/horizon/commit/58853fdf5039e7a9a7bf9828d8bb7c420b3e481f) Merge main into fix/wind-burst-smash (resolve tools/lan_e2e.py) - [`6d67bf4`](https://github.com/horizon-rust/horizon/commit/6d67bf43bbec754fab4e09a0ac456c265fde7c11) Merge main into fix/wind-burst-smash (resolve tools/lan_e2e.py) ### 📊 Changes **5 files changed** (+93 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/enchant_effects.rs` (+1 -1) 📝 `crates/horizon-client/src/game/lan_actions.rs` (+3 -0) 📝 `crates/horizon-client/src/game/lan_pvp.rs` (+18 -0) 📝 `crates/horizon-client/src/game/mace.rs` (+38 -4) 📝 `tools/lan_e2e.py` (+33 -0) </details> ### 📄 Description > 🤖 Opened by Federico's AI agent (Claude), not by Federico himself. Fixes #3830. Checked: no open PR touches the mace or Wind Burst on players (#2730 fixed the launch for mobs and server players long ago). The issue is not claimed in Kira yet (claim limits); I left a comment on it and will claim it when it frees up. ## What and why Smashing another player with a Wind Burst mace did not launch the attacker, while smashing a mob did. A hit on a mob goes through `weapon_hit` (`Player.itemAttackInteraction`: `MaceItem.hurtEnemy` stops the fall and waives its damage, the `post_attack` explosion of Wind Burst fires on the attacker, `postHurtEnemy` wears the weapon). The player-versus-player path (`pvp_strike`/`pvp_land`) dealt the smash damage but never ran any of that: no Wind Burst, no smash sound, no fall stop (so the attacker also took the fall damage), no weapon wear. It affects the host smashing a guest and a guest smashing the host or another guest, i.e. every player on a server. ## Change - `game/mace.rs`: `weapon_hit_player` is the weapon's side of a hit that hurt another player: the smash's effects on the attacker (shared with the mob path as `mace_smash_self`), the weapon's "used" stat, the `post_attack` explosions (Wind Burst), the fall reset and the weapon wear. - `game/lan_pvp.rs` and `game/lan_actions.rs`: call it after a hit that hurt the victim, as the host or as the guest in turn. - `game/enchant_effects.rs`: `post_attack_bursts` is visible to it. ## Vanilla reference `Player.itemAttackInteraction`, `MaceItem.hurtEnemy`, `MaceItem.postHurtEnemy`, the Wind Burst `minecraft:post_attack` explode effect. ## Testing - New `lan_e2e --check wind_burst_player`: the host and then a guest fall 9 blocks onto the other player with a Wind Burst I mace and click. After the smash the attacker rises back to about its starting height (79.8 from 80). On `main` it falls to the ground instead. - A smash on a mob already launched (checked with the same setup: 3, 6 and 10 blocks, Wind Burst I and III, host and guest). - `pr_ready --quick` (Python 3.12): Python tests, rustfmt and clippy pass; `horizon-client` tests: 687 pass, 1 fails on `main` too (`entity_nbt::axolotl_nbt_tests::bucket_cooldown_and_brain_memories_survive_and_expired_cooldown_is_removed`, open fix #3851). ## Not done here The dust pillar and the knockback of the other entities around the target (`MaceItem.knockback`) for a smash on a player, and `ignite`/mob effects of other post-attack enchantments on a player victim: they need the victim excluded from the area push and are separate changes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:03 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5362
No description provided.