[PR #2364] [MERGED] Make the strafing dragon charge its fireball only with a clear line of sight #4244

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

📋 Pull Request Information

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

Base: main ← Head: fix/dragon-strafe-line-of-sight


📝 Commits (1)

  • 9dbd0a4 Make the strafing dragon charge its fireball only with a clear line of sight

📊 Changes

1 file changed (+10 additions, -1 deletions)

View changed files

📝 crates/horizon-client/src/game/dragon.rs (+10 -1)

📄 Description

What and why

A strafing ender dragon charged and fired its fireball at a player behind a wall or inside a tower, as long as the player was within 64 blocks. In vanilla it only charges while it can see the player, and the charge drops by one each tick when it cannot.

The strafe phase now checks the dragon's line of sight to the player (eye to eye, blocks only, within 128 blocks) before it adds to the charge. Without it, or beyond 64 blocks, the charge counts down.

Vanilla reference

  • DragonStrafePlayerPhase.doServerTick: fireballCharge++ only if dragon.hasLineOfSight(attackTarget), else fireballCharge-- while above 0.
  • Entity.hasLineOfSight: Level.clip with ClipContext.Block.COLLIDER from eye to eye.
  • Dragon eye height: 0.85 of its 8 block height.

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/2364 **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/dragon-strafe-line-of-sight` --- ### 📝 Commits (1) - [`9dbd0a4`](https://github.com/horizon-rust/horizon/commit/9dbd0a4bafb0dd09bfc9c9898d6971ca05a2e448) Make the strafing dragon charge its fireball only with a clear line of sight ### 📊 Changes **1 file changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/dragon.rs` (+10 -1) </details> ### 📄 Description ## What and why A strafing ender dragon charged and fired its fireball at a player behind a wall or inside a tower, as long as the player was within 64 blocks. In vanilla it only charges while it can see the player, and the charge drops by one each tick when it cannot. The strafe phase now checks the dragon's line of sight to the player (eye to eye, blocks only, within 128 blocks) before it adds to the charge. Without it, or beyond 64 blocks, the charge counts down. ## Vanilla reference - `DragonStrafePlayerPhase.doServerTick`: `fireballCharge++` only if `dragon.hasLineOfSight(attackTarget)`, else `fireballCharge--` while above 0. - `Entity.hasLineOfSight`: `Level.clip` with `ClipContext.Block.COLLIDER` from eye to eye. - Dragon eye height: 0.85 of its 8 block height. ## 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:15:44 +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#4244
No description provided.