[GH-ISSUE #1393] [combat] Blindness does not prevent critical hits #420

Closed
opened 2026-11-02 15:38:56 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @rdbtCVS on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1393

Shared bug at 83fa14e51b89eab728b8e233e9e5d95296bef93d, tested with both explicit singleplayer flags.

Reproduce:

  1. Equip an iron sword and wait for a fully charged attack.
  2. /effect give @s blindness 30
  3. Jump and hit a nearby mob while descending.

Expected: Blindness prevents the critical bonus. A full iron-sword hit should deal 6 damage, as the grounded control does.

Actual: it deals 9 damage in both modes, identical to a falling critical without Blindness.

Evidence: two qualified pairs, .local/singleplayer-audit/combat-{b,c}/criticals-*/result.json. Fresh NoAI cows start at 40 health: grounded→34, falling→31, falling with active Blindness→31. Effects and falling state are recorded at the hit; authoritative health is queried after settling. Initial combat-a's lower aim drifted off target during descent and is excluded.

Native 26.3 Player.canCriticalAttack checks isMobilityRestricted, which checks Blindness; archived Player bytecode confirms this restriction.

Hypothesis: Horizon's critical predicate checks falling/sprinting/charge but omits the effect restriction.

Acceptance: Blindness suppresses the critical multiplier while valid unblinded falling hits still receive it.

Originally created by @rdbtCVS on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1393 Shared bug at `83fa14e51b89eab728b8e233e9e5d95296bef93d`, tested with both explicit singleplayer flags. Reproduce: 1. Equip an iron sword and wait for a fully charged attack. 2. `/effect give @s blindness 30` 3. Jump and hit a nearby mob while descending. Expected: Blindness prevents the critical bonus. A full iron-sword hit should deal 6 damage, as the grounded control does. Actual: it deals 9 damage in both modes, identical to a falling critical without Blindness. Evidence: two qualified pairs, `.local/singleplayer-audit/combat-{b,c}/criticals-*/result.json`. Fresh NoAI cows start at 40 health: grounded→34, falling→31, falling with active Blindness→31. Effects and falling state are recorded at the hit; authoritative health is queried after settling. Initial combat-a's lower aim drifted off target during descent and is excluded. Native 26.3 Player.canCriticalAttack checks isMobilityRestricted, which checks Blindness; archived Player bytecode confirms this restriction. Hypothesis: Horizon's critical predicate checks falling/sprinting/charge but omits the effect restriction. Acceptance: Blindness suppresses the critical multiplier while valid unblinded falling hits still receive it.
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#420
No description provided.