mojira.dev
MC-56042

stat.damageDealt doesn't take damage reduction into account

The stat.damageDealt doesn't take any damage reduction like armor, protection or resistance into account when incrementing the score.

Example: Summon a Zombie with resistance 5 which makes it invulnerable. Hitting the zombie will still increment the stat.damageDealt score as if the resistance effect wasn't there. The same behavior is seen with armor, and armor with protection enchantments.

This also applies to stat.damageTaken.
As of 14w31a. stat.damageTaken is tracked correctly.

Comments 7

These are not duplicates... They are separate issues.

Agreed this is not a duplicate of MC-29518.
As of 14w31a, stat.damageTaken (MC-49590) is now tracked correctly, but stat.damageDealt still ignores any armor, enchantments, etc. that the other entities have. So, if you hit another player with a wooden sword, it will count as dealing 5 hp of damage even if they had full enchanted diamond armor and received no visible damage on their screen.

Just tested in the 1.8.2 pre-release1, and the issue is still present.

The damage dealt statistic tracks how much damage is dealt by the player by taking the difference between the attacked entities health before and after the hit.

Based on this the report would be valid because an entity with resistance 5 will not lose any health at all

Searge, your comment suggests that the intended behavior is exactly what this ticket thinks it should be.

Cannot reproduce. Marcono, steps to reproduce?

Isak

michael

Confirmed

Minecraft 14w21b, Minecraft 14w27b, Minecraft 14w32b, Minecraft 1.8.2-pre1

Retrieved