The repair was already complete when the teams returned for the second half: the grounds crew ___ the damaged corner flag.
Explicación
The flag repair was complete before the teams returned, so the past perfect presents the repair as earlier than that return. The past simple "replaced" merely reports a past event and does not explicitly locate its completion before the later reference point.