Items picked up by mobs drop with full durability
The drowning body drops a low-endurance Trident, is picked up by another drowning body, defeats the drowning body will drop a full-lasting Trident. Simply put, if an undead creature picks up a weapon with low durability, defeating the undead creature will drop a weapon with full durability. [The text is a translator, but I think this bug affects the unlimited use of weapons, not enchanted experience repair (is being cured)]