Minecraft wiki entry for Zombie, associated text: If a zombie sees a player and a villager together, the zombie prefers to attack the player first. A zombie already chasing a villager continues to do so even if the player is near, until the player attacks it.