mojira.dev
MC-251736

Reflected ghast fireball cannot hit the ghast

In 22w19a, when I reflected ghast fireball, it just passed through the ghast and exploded, making terrain destroyed. However, the ghast did not get any damage. Also, the fireball cannot make some fire-immune mobs (just like zombified piglin) hostile. (For those mobs which can hurt by fire (e.g. piglin or wolf), ghast fireball can make them hostile. ) Meanwhile in 22w18a, these situation didn't exist.

Code analysis by @unknown can be found in this comment.

Attachments

Comments 8

Tested this, and can confirm ghast fireballs are not killing ghasts but still exploding.

Can confirm. For easy testing I recommend using command blocks to teleport the ghast constantly.

This is likely introduced during the fix for MC-249888. Entity#isInvulnerableTo now returns true for if source.isFire() && isFireImmune(), and the fireball damage is considered a fire damage. Since ghast is fire-immune, it cannot be hurt by any fire damages (including fireballs) due to GhastEntity#damage early-returning on isInvulnerableTo call.

Yes, when I tried to deflect it at the bottom, it hit the ghast but it takes 3 deflected fireballs to kill it.

In 1.19 pre-1,the bug is still exist.

⚠️ Please do not add Affected Versions to resolved reports.

Have a look at the Resolution and the comments to see why this ticket has been resolved. If you think this ticket has been resolved erroneously you can contact the Mojira staff on Discord or Reddit.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

⚠️ Please do not add Affected Versions to resolved reports.

Have a look at the Resolution and the comments to see why this ticket has been resolved. If you think this ticket has been resolved erroneously you can contact the Mojira staff on Discord or Reddit.

-- I am a bot. This action was performed automatically! If you think it was incorrect, please notify us on Discord or Reddit

I can confirm that this is still an issue in 1.19 Pre-release 1.

Slobodan_Kinezic

Erik Broes

Confirmed

Very Important

Mob behaviour, Projectiles

fireball, ghast

22w19a, 1.19 Pre-release 1

1.19 Pre-release 2

Retrieved