[PR #2242] [MERGED] End the Absorption effect once the absorption is used up #4137

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

📋 Pull Request Information

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

Base: main ← Head: fix/absorption-effect-ends


📝 Commits (1)

  • fd0f09d End the Absorption effect once the absorption is used up

📊 Changes

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

View changed files

📝 crates/horizon-client/src/effects.rs (+9 -6)
📝 crates/horizon-client/src/game/potions.rs (+3 -1)

📄 Description

What and why

After the absorption hearts were used up, the Absorption effect icon stayed on the HUD (and in the effect list) until its timer ended. In vanilla the effect is removed on the next tick once the absorption amount is 0.

PlayerEffects::tick_with now takes whether the absorption is empty and drops the Absorption effect (with any hidden effect behind it) when it is. It runs in the shared player effect tick, so LAN guests get it too.

Vanilla reference

  • AbsorptionMobEffect.applyEffectTick (returns getAbsorptionAmount() > 0) and shouldApplyEffectTickThisTick (always)
  • MobEffectInstance.tickServer (a false answer ends the effect)

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/2242 **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/absorption-effect-ends` --- ### 📝 Commits (1) - [`fd0f09d`](https://github.com/horizon-rust/horizon/commit/fd0f09d6f6530e8c442906a953d80414dc8dcb64) End the Absorption effect once the absorption is used up ### 📊 Changes **2 files changed** (+12 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/effects.rs` (+9 -6) 📝 `crates/horizon-client/src/game/potions.rs` (+3 -1) </details> ### 📄 Description ## What and why After the absorption hearts were used up, the Absorption effect icon stayed on the HUD (and in the effect list) until its timer ended. In vanilla the effect is removed on the next tick once the absorption amount is 0. `PlayerEffects::tick_with` now takes whether the absorption is empty and drops the Absorption effect (with any hidden effect behind it) when it is. It runs in the shared player effect tick, so LAN guests get it too. ## Vanilla reference - `AbsorptionMobEffect.applyEffectTick` (returns `getAbsorptionAmount() > 0`) and `shouldApplyEffectTickThisTick` (always) - `MobEffectInstance.tickServer` (a false answer ends the effect) ## 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:14:57 +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#4137
No description provided.