Files
horizon-airdef/crates/horizon-client/src
Ludovic Marie f5688883ad fix: dragon damage follows vanilla (perched arrows, cooldown, explosions)
- A perched dragon (scanning, attacking, flaming, hovering) shrugs arrows
  off as `AbstractDragonSittingPhase.onHurt` does: no damage, and the arrow
  is set alight for a second and turns back instead of being spent. Arrows
  that hit a part or a crystal deal the arrow's damage with its Power bonus,
  and turn back when the hit is refused (a dying dragon, an invulnerable
  crystal).
- The damage cooldown is `LivingEntity.hurtServer`'s: within it a stronger
  hit lands its excess over the last one instead of being dropped; the hurt
  sound plays only for a new hit.
- Explosions hit as `ServerExplosion.hurtEntities` does: the dragon itself
  (its body) and then each part, each by its distance and its exposure
  (`getSeenPercent`, so cover protects it), through the cooldown; and every
  end crystal in reach blows up, not only the first.

`Dragon::hurt` and `Dragon::explosion_hits` are pure, with unit tests for
the perched arrows, the cooldown's excess, the parts' quarter plus one,
the take-off after a quarter of its health, and exposure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit c730ed9ed8e4d9151bacca3313f0fbdf5180c42e)
2026-10-22 01:57:23 +02:00
..
2026-10-09 00:28:32 +02:00
2026-10-10 07:14:42 +02:00
2026-10-17 09:12:41 +02:00
2026-10-09 13:01:12 +02:00
2026-10-14 22:09:12 -04:00
2026-10-16 21:42:01 -04:00
2026-10-19 00:52:42 +02:00
2026-10-17 19:30:23 -05:00
2026-10-19 00:52:42 +02:00
2026-10-17 09:12:41 +02:00
2026-10-09 13:01:12 +02:00
2026-10-17 09:12:41 +02:00
2026-10-09 00:28:32 +02:00
2026-10-16 05:03:38 +02:00
2026-10-16 05:03:38 +02:00
2026-10-09 00:28:32 +02:00