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.
This commit is contained in:
Kacpherek
2026-10-27 22:20:01 +01:00
parent a1dfcbf2b3
commit 0d7f842b09
+7
View File
@@ -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,