The bug
If a warden gets angry at a hoglin, and said hoglin transforms into a zoglin before the warden can kill it, the warden will not remain angry at this zoglin and will need to become aggressive toward it a second time.
Note that due to their aggressive nature, the zoglin will likely attack the warden immediately. However, the anger this causes is separate from the initial anger at the hoglin.
How to reproduce
Summon a warden in the Overworld or End
Summon a hoglin nearby
Have the warden get angry at the hoglin before zombification
Expected results
The warden would remain angry even when the targeted hoglin becomes a zoglin.
Actual results
It loses its target.
Thank you for your report!
We're tracking this issue in MC-265066, so this ticket is being resolved and linked as a duplicate.
If you would like to add a vote and any extra information to the main ticket it would be appreciated.
If you haven't already, you might like to make use of the search feature to see if the issue has already been mentioned.
Quick Links:
📓 Bug Tracker Guidelines – 💬 Community Support – 📧 Mojang Support
📓 Project Summary – ✍️ Feedback and Suggestions – 📖 Game Wiki