From 0d7f842b091c57b84a2adc2359faf09a78761af0 Mon Sep 17 00:00:00 2001 From: Kacpherek Date: Tue, 27 Oct 2026 22:20:01 +0100 Subject: [PATCH] Hurt the dragon with a wind charge AbstractWindCharge.onHitEntity hurts whatever it hits for 1, the dragon's parts included (crystals are not hit); Horizon only looked at ordinary mobs. --- crates/horizon-client/src/game/wind.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/crates/horizon-client/src/game/wind.rs b/crates/horizon-client/src/game/wind.rs index b00cea116..86b4de7bc 100644 --- a/crates/horizon-client/src/game/wind.rs +++ b/crates/horizon-client/src/game/wind.rs @@ -121,6 +121,13 @@ impl Game<'_> { ); } } + // An ender dragon part takes the point of damage too; a crystal is + // not hit (`AbstractWindCharge.canHitEntity`). + Who::Mob(id) if id >= super::dragon::SPECIAL => { + if id < super::dragon::SPECIAL + 8 { + self.hit_special(id, 1.0, p.owner == Some(Who::Player), false); + } + } Who::Mob(id) => { let source = Damage { kind: DamageKind::Thrown,