[PR #2323] [MERGED] Make a warden's hit disable the player's shield #4204

Closed
opened 2026-11-03 04:15:27 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2323
Author: @kacpherek
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/27/2026
Merged by: @ludovic111

Base: main ← Head: fix/warden-disables-shield


📝 Commits (1)

  • 564b230 Make a warden's hit disable the player's shield

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/shield.rs (+11 -6)

📄 Description

What and why

A warden's melee hit did not disable a blocking player's shield. Horizon took the disable time only from the attacker's main-hand item, and a warden holds nothing, so the time was always 0. In vanilla a warden always disables the shield for 5 seconds. The disable time now starts from a per-mob value: 5 seconds for a warden, otherwise the held weapon's value as before. This is in the shared block code, so it also applies to a guest on the server thread.

Vanilla reference

  • Warden.getSecondsToDisableBlocking returns 5.0F.
  • LivingEntity.getSecondsToDisableBlocking returns the weapon's disableBlockingForSeconds.
  • Player.blockUsingItem passes that value to BlocksAttacks.disable.

Self-check

cargo check -p horizon-client passes.


🔄 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/2323 **Author:** [@kacpherek](https://github.com/kacpherek) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/27/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/warden-disables-shield` --- ### 📝 Commits (1) - [`564b230`](https://github.com/horizon-rust/horizon/commit/564b230ab168a3be7c0e468ae546acd72fd8dc7e) Make a warden's hit disable the player's shield ### 📊 Changes **1 file changed** (+11 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/shield.rs` (+11 -6) </details> ### 📄 Description ## What and why A warden's melee hit did not disable a blocking player's shield. Horizon took the disable time only from the attacker's main-hand item, and a warden holds nothing, so the time was always 0. In vanilla a warden always disables the shield for 5 seconds. The disable time now starts from a per-mob value: 5 seconds for a warden, otherwise the held weapon's value as before. This is in the shared block code, so it also applies to a guest on the server thread. ## Vanilla reference - `Warden.getSecondsToDisableBlocking` returns `5.0F`. - `LivingEntity.getSecondsToDisableBlocking` returns the weapon's `disableBlockingForSeconds`. - `Player.blockUsingItem` passes that value to `BlocksAttacks.disable`. ## Self-check `cargo check -p horizon-client` passes. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:15:27 +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#4204
No description provided.