[GH-ISSUE #3887] Mobs ignore Weakness and Slowness (effect attribute modifiers missing) #1131

Closed
opened 2026-11-02 15:44:29 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ccclosed on GitHub (Oct 29, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3887

🤖 Filed by ccclosed's AI agent (DeepSeek Harness, deepseek-v4.1-flash), not by ccclosed personally.

Severity: Medium — Weakness/Slowness do nothing
Snapshot: origin/main 7c1e0f979 (2026-10-30)

What happens

effect_modifiers only maps strength (attack damage) and speed (movement speed) effect rows to attribute modifiers. weakness and slowness have no row, so a mob under either effect keeps its full attack damage / movement speed.

  • crates/horizon-client/src/mobs/finalize.rs:502-517 — effect_modifiers: only ("strength", Attr::AttackDamage) and ("speed", Attr::MovementSpeed).
  • Vanilla MobEffects.WEAKNESS carries an ATTACK_DAMAGE ADD_VALUE -4.0 modifier; MobEffects.SLOWNESS carries MOVEMENT_SPEED ADD_MULTIPLIED_TOTAL -0.15 per level (amplifier+1 scales it).

Repro (dynamic, against the audit harness)

  • Zombie with Weakness I: attack damage stays 3.0; vanilla: 3.0 + (-4.0) = 0 (damage floor aside, positive modifiers on the zombie are removed too).
  • Zombie with Slowness I: movement speed stays 0.23; vanilla: 0.23 × (1 − 0.15) = 0.1955.

Impact

Weakness potions/arrows and Slowness (potions, spider webs? no — that's a block; shulker bullets, etc.) are ineffective against mobs; players fighting with potions see a big parity gap, and mobs with player-applied effects behave like the effect is missing.

Suggested fix

Add the vanilla effect rows (weakness → AttackDamage AddValue −4·level; slowness → MovementSpeed AddMultipliedTotal −0.15·level) in effect_modifiers, and, while there, cover the other attribute-carrying effects (health boost, absorption is separate, jump boost, mining fatigue/haste for player mining is elsewhere).

Originally created by @ccclosed on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/3887 > 🤖 Filed by ccclosed's AI agent (DeepSeek Harness, deepseek-v4.1-flash), not by ccclosed personally. **Severity:** Medium — Weakness/Slowness do nothing **Snapshot:** `origin/main` `7c1e0f979` (2026-10-30) ### What happens `effect_modifiers` only maps **strength** (attack damage) and **speed** (movement speed) effect rows to attribute modifiers. `weakness` and `slowness` have no row, so a mob under either effect keeps its full attack damage / movement speed. - `crates/horizon-client/src/mobs/finalize.rs:502-517` — `effect_modifiers`: only `("strength", Attr::AttackDamage)` and `("speed", Attr::MovementSpeed)`. - Vanilla `MobEffects.WEAKNESS` carries an `ATTACK_DAMAGE` `ADD_VALUE -4.0` modifier; `MobEffects.SLOWNESS` carries `MOVEMENT_SPEED` `ADD_MULTIPLIED_TOTAL -0.15` per level (amplifier+1 scales it). ### Repro (dynamic, against the audit harness) - Zombie with Weakness I: attack damage stays **3.0**; vanilla: 3.0 + (-4.0) = 0 (damage floor aside, positive modifiers on the zombie are removed too). - Zombie with Slowness I: movement speed stays **0.23**; vanilla: 0.23 × (1 − 0.15) = **0.1955**. ### Impact Weakness potions/arrows and Slowness (potions, spider webs? no — that's a block; shulker bullets, etc.) are ineffective against mobs; players fighting with potions see a big parity gap, and mobs with player-applied effects behave like the effect is missing. ### Suggested fix Add the vanilla effect rows (`weakness` → AttackDamage AddValue −4·level; `slowness` → MovementSpeed AddMultipliedTotal −0.15·level) in `effect_modifiers`, and, while there, cover the other attribute-carrying effects (health boost, absorption is separate, jump boost, mining fatigue/haste for player mining is elsewhere).
Author
Owner

@ccclosed commented on GitHub (Oct 29, 2026):

🤖 Agent: /claim — working on this in a PR from ccclosed's fork.

<!-- gh-comment-id:6507691768 --> @ccclosed commented on GitHub (Oct 29, 2026): 🤖 Agent: /claim — working on this in a PR from ccclosed's fork.
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#1131
No description provided.