[PR #3639] [MERGED] Wither: take no damage from wither friends #5113

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

📋 Pull Request Information

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

Base: main ← Head: fix/wither-immune-to-wither-friends


📝 Commits (2)

  • 9828599 Wither: take no damage from wither friends (skulls, blasts)
  • 2f804ed Merge main into fix/wither-immune-to-wither-friends

📊 Changes

3 files changed (+37 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/explosion.rs (+10 -1)
📝 crates/horizon-client/src/game/wither.rs (+11 -0)
📝 crates/horizon-client/src/mobs/wither.rs (+16 -0)

📄 Description

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

Fixes #3633.

What and why

Withers could hurt each other (skulls, spawn blast), which made them fight. Vanilla's WitherBoss.hurtServer rejects damage whose causing entity is a non-player mob in #wither_friends (the undead, other withers included). Horizon only applied that list to the wither's own target selection; the damage side was a stub (others_undead was hard-coded false).

Change

  • mobs/wither.rs: shielded_from(victim, attacker) plus a unit test.
  • game/wither.rs (wither_skull_hit): a wither skull no longer damages a wither if its owner is a wither friend.
  • game/explosion.rs: a blast whose owner/exploding mob is a wither friend does not damage a wither (no knockback, as for any rejected hit).

Vanilla reference

net.minecraft.world.entity.boss.wither.WitherBoss#hurtServer, EntityTypeTags.WITHER_FRIENDS.

Testing

No Minecraft 26.3 data on my machine yet, so no parity harness run; CI's parity job / a maintainer's run-parity should cover the wither harnesses. Manual in-game QA to follow.

pr_ready --quick (against origin/main): rustfmt ✅, clippy ✅, horizon-client tests ✅ (801), doc tests ✅. Python tests fail locally only because .local/ is absent (13 errors, none in touched files).

🤖 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/3639 **Author:** [@xFedeT](https://github.com/xFedeT) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/wither-immune-to-wither-friends` --- ### 📝 Commits (2) - [`9828599`](https://github.com/horizon-rust/horizon/commit/9828599067eddcec6c95b0f5ee5d268f9b45dcad) Wither: take no damage from wither friends (skulls, blasts) - [`2f804ed`](https://github.com/horizon-rust/horizon/commit/2f804ed55fbd1351a0fe03bea87a76ff2be56c19) Merge main into fix/wither-immune-to-wither-friends ### 📊 Changes **3 files changed** (+37 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/explosion.rs` (+10 -1) 📝 `crates/horizon-client/src/game/wither.rs` (+11 -0) 📝 `crates/horizon-client/src/mobs/wither.rs` (+16 -0) </details> ### 📄 Description > 🤖 Opened by Federico's AI agent (Claude), not by Federico himself. Fixes #3633. ## What and why Withers could hurt each other (skulls, spawn blast), which made them fight. Vanilla's `WitherBoss.hurtServer` rejects damage whose causing entity is a non-player mob in `#wither_friends` (the undead, other withers included). Horizon only applied that list to the wither's own target selection; the damage side was a stub (`others_undead` was hard-coded `false`). ## Change - `mobs/wither.rs`: `shielded_from(victim, attacker)` plus a unit test. - `game/wither.rs` (`wither_skull_hit`): a wither skull no longer damages a wither if its owner is a wither friend. - `game/explosion.rs`: a blast whose owner/exploding mob is a wither friend does not damage a wither (no knockback, as for any rejected hit). ## Vanilla reference `net.minecraft.world.entity.boss.wither.WitherBoss#hurtServer`, `EntityTypeTags.WITHER_FRIENDS`. ## Testing No Minecraft 26.3 data on my machine yet, so no parity harness run; CI's `parity` job / a maintainer's `run-parity` should cover the wither harnesses. Manual in-game QA to follow. **pr_ready --quick** (against origin/main): rustfmt ✅, clippy ✅, horizon-client tests ✅ (801), doc tests ✅. Python tests fail locally only because `.local/` is absent (13 errors, none in touched files). 🤖 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:10:19 +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#5113
No description provided.