mojira.dev
MC-186972

Dragon's breath deals a different amount of damage from charges than directly from the dragon

When a dragon fireball lands, the resulting area effect cloud deals 6 harming damage, but when the ender dragon breathes near the portal, the resulting area effect cloud deals 3 harming damage. Expected is that they're the same, since they're both dragon's breath.

Linked issues

Comments 3

Code analysis (Mojang mappings, 1.19.4-pre4): The effects of the area effect clouds spawned by dragon fireballs and the area effect clouds spawned by the dragon sitting on the fountain are different. In DragonFireball#onHit(Entity), the effect added is:

$$2.addEffect(new MobEffectInstance(MobEffects.HARM, 1, 1));

while on DragonSittingFlamingPhase#doServerTick(), the effect added is:

this.flame.addEffect(new MobEffectInstance(MobEffects.HARM));

which is equivalent to new MobEffectInstance(MobEffects.HARM, 0, 0). These two fields in question correspond respectively to the duration and amplifier of the effect. The important part here is the amplifier: 0 is equivalent to Instant Damage (3 hearts), while 1 is equivalent to Instant Damage II (6 hearts).

gaspoweredpick

(Unassigned)

Confirmed

Entities, Mob behaviour

20w22a, 1.16.1, 20w29a, 1.16.2 Pre-release 1, 1.16.2 Release Candidate 1, ..., 1.20.4, 24w13a, 1.21, 1.21.1, 1.21.2 Release Candidate 1

Retrieved