mojira.dev
MC-193297

Ghast(s) fireball explosion does not credit the "Owner" of the fireball if the one who was damaged was not directly hit.

If you hit a fireball directly at someone it will credit you for the kill, However if you hit next to them or they are otherwise hit by the fireball but not directly you will not be credited for the kill on the player.

This was checked using the playerKillCount scoreboard so it is possible the issue is with that and not the credit itself, this was only checked as players against players but could also be the case with other entities.

Linked issues

Comments 3

Pretty sure code analysis:
In LargeFireball#onHit, the call to level.explode passes null to the entity parameter instead of this. As a result, Explosion#getSourceMob can't find the fireball, nor its owner. Contrast with Primed TNT, which uses a similar explode call but does pass itself in.

The fireball still works for direct hits because onHitEntity passes the fireball entity to the hurt damage source context.

can confirm in 1.18.2

Daniel

(Unassigned)

Confirmed

(Unassigned)

1.16.1, 1.16.4, 1.18, 1.18.1 Pre-release 1, 1.18.2

22w43a

Retrieved