The Bug
For the strike, Wardens have to hit tamed Wolves twice to kill them.
For the Sonic Boom, Wardens have to shoot tamed Wolves four times to kill them.
Sources
Strike: https://www.bilibili.com/video/BV1S94y1d7AA
No Sonic Boom sources yet.
Code analysis
Code analysis by @unknown can be found in this comment.
Attachments
Comments 16
@Chumbanotz
If it does like what you said, I still think this should be a bug. In that video I provided, at about 28", the Wolf only took a few damage by observing the angle of its tail after taking the first hit by Warden, while as far as I know that the least damage a Warden gives is 16 (Easy Difficulty) while tamed Wolf has 20. If what you said is true, the angle of the tail shouldn't decrease to alomst parallel to the ground even in Easy Difficulty, instead it should be drooping as low as possible.
Wolf tails are always parallel to the ground when they're in combat. So if the wolf dies before the warden, you never get to see its true tail angle. I can confirm that a hit from a warden on hard difficulty takes a wolf to 4.5 HP
@tryashtar
Is the Wolf in your comment tamed or not? I remember that tamed Wolf's tail always show their HP rather 'an always parallel to the ground even when it's fighting. The video I provided had already showed this.
Highly related to MC-72151, the same thing caused wolf took more damage when the damage is below 1.
Tamed wolf take damage / 2 + 0.5
damage if the damage has a source and the source is not a player nor arrow. This raised their effectively health to about 40, highly resist to damage to avoid players lose their bond wolves.
Warden melee attack only do 30 damage, and sonic boom only do 10 damage, both not high enough to kill wolf with 40 ehp.
I think this is WAI. And asking for making warden kill wolf in one melee hit is more like a feature request.
I noticed the tweaks for Wolves and I hope this issue can be as well solved along with that. Thanks developers.
Wolves are programmed to take less damage from a damage source with an associated entity that isn't a player or arrow, essentially taking a mob's damage on easy mode. My guess as to why is to make tamed wolves more useful when fighting mobs. Here's the relevant part of the code: