Ian Westwood edged a boundary off the last ball to earn Warwickshire a tie from an amazing Twenty20 Cup clash at Bristol.
The visitors needed 82 off their last six overs to reach a target of 159, but almost got there thanks to Tony Frost's 53 off 33 balls and an extraordinary contribution from Gloucestershire seamer Anthony Ireland.
He effectively conceded 12 off one ball in the 17th over, being hit for six off his first delivery and then sending down two no-ball full-tosses above waist height which meant he had to be removed from the attack.
Gloucestershire's total of 158 for four was built around an opening stand of 60 between Craig Spearman and Hamish Marshall, who top scored with 46. Ant Botha took three 22 from four overs.
Spearman and Marshall were in good form from the opening ball and Marshall brought up the fifty with a straight six off Neil Carter at the start of the sixth over.
But the introduction of Botha changed things as Spearman was caught at deep mid-wicket for 20 and Marshall was stumped charging down the pitch having hit five fours as well as the six.
Botha claimed his third victim when Chris Taylor was caught at long on for 13, six of his runs having come from a straight shot off Ian Salisbury, which cleared the ropes and struck a spectator, who needed attention for a facial cut.
When Salisbury trapped Alex Gidman lbw for nine it was 104 for four in the 14th over and the early momentum had been lost.
Mark Hardinges provided some acceleration with a six and three fours in his 25-ball innings, while Marcus North could find the boundary only twice in facing 29 deliveries.
Jon Lewis removed Navdeep Poonia lbw to the first ball of Warwickshire's reply.
Carter and Jonathan Trott also fell cheaply and at the halfway point of their innings the Bears looked in big trouble at 47 for three.
Jim Troughton needed 40 balls to make 31, with only two boundaries, and Gloucestershire looked to have victory sewn up when the 16th over ended with Warwickshire still needing 60.
But the introduction of Ireland changed everything. By the time North had completed the over it had cost 23 and the Bears were back in with a chance.
There were still 14 needed off the final over, sent down by Gladiators captain Lewis, and Frost was caught off the first ball, having hit three sixes and a four.
Tim Groenewald (39 not out) smashed the second delivery for six after the batsmen had crossed and, although Lewis avoided conceding another boundary with his next four balls, he erred in bringing up both his third man and fine leg for the final one.
Westwood edged it over the short third man and Gloucestershire's skipper stood hands on hips in disbelief after completing figures of three for 22 from his four overs.