behavior.hurt_by_target triggers even if they are not actually hurt by target
Verification builds: 1.2 (464771)
Summary:
adding "behavior.hurt_by_target" to a skeleton triggers by arrow fire from another skeleton even if they are not actually hurt by the target by using damage_sensor and deals_damage:false from the family of another skeleton.
Impact:
This makes it impossible for a group of skeletons to fight a target instead of all turning on each other when the skeleton in the back fires an arrow and it ends up passing through another monster with the same family. This makes skeletons useless in a team setting in monster battle arena.
Repro Steps:
1.Use the attached skeleton json in a behavior pack.
2. Summon a group of skeletons. (using the attached, make sure it's in a plain or desert to apply the same family team)
3. Summon a combatant for the skeletons. (either use the player or summon a skeleton in the opposing family by summoning it in either plain or desert (but not the same as the other skeletons you summoned)
Observed Results:
The team of skeletons will fire at the target, arrows will fly through their team mates which means the damage sensor is working and no damage is being taken, but the team members will attack back anyway.
Expected Results:
behavior.hurt_by_target indicates it should not be applied unless the entity is actually hurt by the target.
Screenshots/Videos attached: Yes https://youtu.be/NRzT6sgfe3Q
Notes: