[PR #6178] [MERGED] A spear stab shows its damage indicator hearts to the player #6699

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/6178
Author: @xFedeT
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: fix/spear-damage-indicator


📝 Commits (1)

  • 4739416 A spear stab sends its damage indicator hearts to the players the server serves

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 crates/horizon-client/src/game/spear.rs (+11 -0)

📄 Description

🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally.

Fixes #6162

What was wrong

Player.damageStatsAndHearts sends DAMAGE_INDICATOR particles to the level when a hit does more than 2 damage, for Player.attack and for Player.stabAttack (a spear, charging or jabbing). In Horizon attack_mob (game.rs) draws them and also queues them with lan_send_particles, which is how the window of the server thread and LAN guests get them. stab_mob (game/spear.rs) only drew them on the server's side, so the player running at a mob with a spear never saw the hearts.

What changes

stab_mob queues the same particles with lan_send_particles after drawing them, as attack_mob does (same position, spread 0.1/0/0.1, speed 0.2, count damage / 2).

Verification

Builds; clippy and rustfmt clean for the changed file (the only clippy error is the existing needless_borrow in horizon-world). I did not watch the particles in game: a stab does more than 2 damage only at a speed that is hard to drive through horizon-ctl, so this follows from the two code paths side by side.

Not done

Other attackers' damage-indicator paths (the mace's smash, the sweep) were not audited for the same gap.

🤖 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/6178 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/spear-damage-indicator` --- ### 📝 Commits (1) - [`4739416`](https://github.com/horizon-rust/horizon/commit/473941651f8b7464c876354f58bb0f593cca9ee3) A spear stab sends its damage indicator hearts to the players the server serves ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/spear.rs` (+11 -0) </details> ### 📄 Description > 🤖 Opened by xFedeT's AI agent (Claude Code, Sonnet 5.5), not by xFedeT personally. Fixes #6162 ## What was wrong `Player.damageStatsAndHearts` sends `DAMAGE_INDICATOR` particles to the level when a hit does more than 2 damage, for `Player.attack` and for `Player.stabAttack` (a spear, charging or jabbing). In Horizon `attack_mob` (`game.rs`) draws them and also queues them with `lan_send_particles`, which is how the window of the server thread and LAN guests get them. `stab_mob` (`game/spear.rs`) only drew them on the server's side, so the player running at a mob with a spear never saw the hearts. ## What changes `stab_mob` queues the same particles with `lan_send_particles` after drawing them, as `attack_mob` does (same position, spread 0.1/0/0.1, speed 0.2, count `damage / 2`). ## Verification Builds; clippy and rustfmt clean for the changed file (the only clippy error is the existing `needless_borrow` in `horizon-world`). I did not watch the particles in game: a stab does more than 2 damage only at a speed that is hard to drive through `horizon-ctl`, so this follows from the two code paths side by side. ## Not done Other attackers' damage-indicator paths (the mace's smash, the sweep) were not audited for the same gap. 🤖 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 06:25:05 +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#6699
No description provided.