James Morrison spared West Brom's blushes with an injury-time equaliser against Bristol City as the FA Cup third round tie at The Hawthorns ended 2-2.
All the goals came in the second half as the Championship side came from behind to lead with goals from Jonathan Kodjia and Kieran Agard, after Saido Berahino had climbed off the bench to put Albion ahead.
City looked set for a famous victory but in the fifth minute of time added on at the end of the regulation 90 minutes Morrison converted Callum McManaman's cross from close range to set up a replay.
West Brom made a lively start, with Stephane Sessegnon and James McClean both looking dangerous down the flanks. The final ball was lacking though, and it was to be the story of the first half for the Premier League team.
At the other end, Ben Foster, making his first appearance since March last year after recovering from a serious knee injury, looked as sharp as ever as he got down well to smother Joe Bryan's curling effort from the edge of the area.
West Brom's only effort on target of the first half came after 18 minutes. Chris Brunt's free-kick struck the defensive wall and McClean's shot from the rebound was parried away by Frank Fielding.
The start of the second half was a much more lively spectacle with chances at both ends - the most notable coming when Kodjia lobbed just over Foster but into the side-netting before the hour mark.
Baggies boss Tony Pulis made a triple substitution in the 63rd minute, bringing on McManaman, Craig Dawson and Berahino. McClean, Chester and Rickie Lambert made way.
The changes took just four minutes to take effect as Berahino opened the scoring, curling a low shot off the greasy surface and into the bottom corner of the net beyond O'Leary's dive.
However, City were level in the 74th minute as some slack marking allowed Kodjia to head home Luke Freeman's free-kick from insdie the six-yard box.
That was Kodjia's final contribution as he made way for Agard 10 minutes later - and it proved to be an inspired change by Bristol boss Steve Cotterill.
Foster made a superb one-handed save to keep out Freeman's shot but Agard, barely on the pitch a minute, reacted quickest to squeeze home the rebound.
However, another twist remained and Morrison pounced to break the visitors' hearts.