[PR #4419] [MERGED] Run the mace weapon hit on armour stands #5615

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4419
Author: @DUzzL
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @rdbtCVS

Base: main ← Head: fix/issue-4404-wind-burst-armor-stand


📝 Commits (3)

  • ef4f8d3 Run the weapon hit on an armor stand so a Wind Burst launches the attacker
  • 0a568f2 Add armor stand targets to the mace parity harness
  • 4141a12 Merge main into fix/issue-4404-wind-burst-armor-stand

📊 Changes

6 files changed (+168 additions, -41 deletions)

View changed files

📝 crates/horizon-client/src/game/armor_stands.rs (+27 -5)
📝 crates/horizon-client/src/game/dispense_fixture.rs (+39 -21)
📝 crates/horizon-client/src/game/mace.rs (+42 -10)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaBlockUpdateOracle.java (+5 -0)
📝 mods/horizon/src/test/java/dev/horizonlab/parity/VanillaDispenserOracle.java (+9 -0)
📝 tools/test_mace_parity.py (+46 -5)

📄 Description

🤖 Opened by DUzzL's AI agent, not by DUzzL personally.

Fixes #4404

Cause: attack_armor_stand in game/armor_stands.rs ran only the attack effects. It never ran the weapon-hit step that mobs (weapon_hit) and players (weapon_hit_player) get in mace.rs, so a stand hit did not trigger the mace smash or the Wind Burst explosion after a fall.

Change: a new weapon_hit_stand in mace.rs mirrors weapon_hit_player. smash_knockback now takes a centre and a spared target instead of a mob index; the mob and player paths behave as before. A non-mace weapon skips the smash step. The attacker is never in the mob or stand lists, so it cannot be hit.

Tested: cargo fmt --check and cargo clippy -p horizon-client --lib --bins -- -D warnings pass. cargo test -p horizon-client --bins mace (1 passed) and --bins armor_stand (3 passed) pass. No test covers a Wind Burst on a stand.

Not tested: no in-game run. The vanilla claim (a living armour stand gets the post-attack effects) comes from memory of Player.itemAttackInteraction; no vanilla-parity reference in the repo covers it. tools/pr_ready.py not run.


🔄 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/4419 **Author:** [@DUzzL](https://github.com/DUzzL) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/issue-4404-wind-burst-armor-stand` --- ### 📝 Commits (3) - [`ef4f8d3`](https://github.com/horizon-rust/horizon/commit/ef4f8d3edcb00def5763bce59764a07d761c8393) Run the weapon hit on an armor stand so a Wind Burst launches the attacker - [`0a568f2`](https://github.com/horizon-rust/horizon/commit/0a568f21aa16de3a38f0ff3d04deea3ba36231ca) Add armor stand targets to the mace parity harness - [`4141a12`](https://github.com/horizon-rust/horizon/commit/4141a127fb06dc2c8f784e639295f5e61a152272) Merge main into fix/issue-4404-wind-burst-armor-stand ### 📊 Changes **6 files changed** (+168 additions, -41 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/armor_stands.rs` (+27 -5) 📝 `crates/horizon-client/src/game/dispense_fixture.rs` (+39 -21) 📝 `crates/horizon-client/src/game/mace.rs` (+42 -10) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaBlockUpdateOracle.java` (+5 -0) 📝 `mods/horizon/src/test/java/dev/horizonlab/parity/VanillaDispenserOracle.java` (+9 -0) 📝 `tools/test_mace_parity.py` (+46 -5) </details> ### 📄 Description > 🤖 Opened by DUzzL's AI agent, not by DUzzL personally. Fixes #4404 **Cause:** `attack_armor_stand` in `game/armor_stands.rs` ran only the attack effects. It never ran the weapon-hit step that mobs (`weapon_hit`) and players (`weapon_hit_player`) get in `mace.rs`, so a stand hit did not trigger the mace smash or the Wind Burst explosion after a fall. **Change:** a new `weapon_hit_stand` in `mace.rs` mirrors `weapon_hit_player`. `smash_knockback` now takes a centre and a spared target instead of a mob index; the mob and player paths behave as before. A non-mace weapon skips the smash step. The attacker is never in the mob or stand lists, so it cannot be hit. **Tested:** `cargo fmt --check` and `cargo clippy -p horizon-client --lib --bins -- -D warnings` pass. `cargo test -p horizon-client --bins mace` (1 passed) and `--bins armor_stand` (3 passed) pass. No test covers a Wind Burst on a stand. **Not tested:** no in-game run. The vanilla claim (a living armour stand gets the post-attack effects) comes from memory of `Player.itemAttackInteraction`; no vanilla-parity reference in the repo covers it. `tools/pr_ready.py` not run. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:13:49 +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#5615
No description provided.