[PR #2399] [MERGED] Wolves only spare tamed wolves of their own owner #4278

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

📋 Pull Request Information

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

Base: main ← Head: fix/wolf-spares-tamed-wolves


📝 Commits (3)

  • c30d51d Wolves fight other owners' tamed wolves
  • 1a5e5eb Owner combat goals only follow the wolf's own owner
  • 1b42652 Merge remote-tracking branch 'origin/main' into HEAD

📊 Changes

2 files changed (+7 additions, -2 deletions)

View changed files

📝 crates/horizon-client/src/mobs.rs (+3 -0)
📝 crates/horizon-client/src/mobs/tame.rs (+4 -2)

📄 Description

What and why

A tamed wolf joining its owner's fight never attacked any tamed wolf, so it would not help against a wolf belonging to someone else (for example a friend's pet on a shared world). Vanilla only spares tamed wolves of the same owner. wants_to_attack now compares the target wolf's owner with its own, and Seen carries the owner for that. Tamed cats and parrots are still spared.

Vanilla reference

  • Wolf.wantsToAttack: for a wolf target, !wolfTarget.isTame() || wolfTarget.getOwner() != owner.

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/2399 **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/wolf-spares-tamed-wolves` --- ### 📝 Commits (3) - [`c30d51d`](https://github.com/horizon-rust/horizon/commit/c30d51d65e1cde584b319f7105c4e772737077ce) Wolves fight other owners' tamed wolves - [`1a5e5eb`](https://github.com/horizon-rust/horizon/commit/1a5e5eb35828554deff92538bc21dd50cb0f0209) Owner combat goals only follow the wolf's own owner - [`1b42652`](https://github.com/horizon-rust/horizon/commit/1b42652e96054c876e2cd38e4b826b7aef6fd22c) Merge remote-tracking branch 'origin/main' into HEAD ### 📊 Changes **2 files changed** (+7 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/mobs.rs` (+3 -0) 📝 `crates/horizon-client/src/mobs/tame.rs` (+4 -2) </details> ### 📄 Description ## What and why A tamed wolf joining its owner's fight never attacked any tamed wolf, so it would not help against a wolf belonging to someone else (for example a friend's pet on a shared world). Vanilla only spares tamed wolves of the same owner. `wants_to_attack` now compares the target wolf's owner with its own, and `Seen` carries the owner for that. Tamed cats and parrots are still spared. ## Vanilla reference - `Wolf.wantsToAttack`: for a wolf target, `!wolfTarget.isTame() || wolfTarget.getOwner() != owner`. ## 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:16:00 +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#4278
No description provided.