[PR #5062] [MERGED] Give a tamed pet its owner's scoreboard team #6035

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

📋 Pull Request Information

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

Base: main ← Head: fix/pet-owner-team


📝 Commits (1)

  • ea306f2 Give a tamed pet its owner's scoreboard team

📊 Changes

2 files changed (+128 additions, -13 deletions)

View changed files

📝 crates/horizon-client/src/game/scoreboard.rs (+127 -12)
📝 tools/port_map/game-007.tsv (+1 -1)

📄 Description

Fixes the TamableAnimal.getTeam row in the port ledger. (No issue.)

Vanilla's TamableAnimal.getTeam() answers the pet's own team if it has one, otherwise — when the animal is tame — its root owner's team (getRootOwner recurses through a pet owner), otherwise nothing. That team is what colours a pet's nametag and its glow outline and what the friendly-fire rules read. Horizon resolved only the pet's own scoreboard name, so a tamed wolf that belonged to no team of its own never took its owner's colour.

Proven: the new test passes on a build box and the whole horizon-client lib suite passes with it (940 passed): a tamed pet with no team answers its owner's, a pet with its own team answers that, an untamed pet answers none, and a pet owned by a pet resolves to the root owner.

Not proven: nothing in a game — the visual check is a tamed wolf beside an owner on a coloured team, whose nametag and outline should match the owner's colour.


🔄 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/5062 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 10/31/2026 **Status:** ✅ Merged **Merged:** 10/31/2026 **Merged by:** [@rdbtCVS](https://github.com/rdbtCVS) **Base:** `main` ← **Head:** `fix/pet-owner-team` --- ### 📝 Commits (1) - [`ea306f2`](https://github.com/horizon-rust/horizon/commit/ea306f29ebd628f6278038c6680db5fd09e47de2) Give a tamed pet its owner's scoreboard team ### 📊 Changes **2 files changed** (+128 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/scoreboard.rs` (+127 -12) 📝 `tools/port_map/game-007.tsv` (+1 -1) </details> ### 📄 Description Fixes the `TamableAnimal.getTeam` row in the port ledger. (No issue.) Vanilla's `TamableAnimal.getTeam()` answers the pet's own team if it has one, otherwise — when the animal is tame — its **root owner's** team (`getRootOwner` recurses through a pet owner), otherwise nothing. That team is what colours a pet's nametag and its glow outline and what the friendly-fire rules read. Horizon resolved only the pet's own scoreboard name, so a tamed wolf that belonged to no team of its own never took its owner's colour. **Proven:** the new test passes on a build box and the whole `horizon-client` lib suite passes with it (940 passed): a tamed pet with no team answers its owner's, a pet with its own team answers that, an untamed pet answers none, and a pet owned by a pet resolves to the root owner. **Not proven:** nothing in a game — the visual check is a tamed wolf beside an owner on a coloured team, whose nametag and outline should match the owner's colour. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:16:47 +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#6035
No description provided.