Sussex 134 for 6 beat Glamorgan 132 for 8 by four wickets
Sussex moved back into contention for a place in the quarter-finals of the Friends Life t20 with a four-wicket win over Glamorgan at Hove.
Murray Goodwin, who earlier in the day was reprimanded by his county for two counts of dissent against an umpire's decision in the last month, led his side home with an unbeaten 41 as Sussex wrapped up victory with four balls to spare to move level on 16 points with Surrey and Somerset in second place in the South Group.
Chasing 133 for victory on a slow, spin-friendly pitch, Sussex were up against it after Glamorgan took three wickets in five balls to reduce their hosts to 32 for 4 in the sixth over. Left-armer Alex Jones picked up two wickets in successive balls as Lou Vincent (four) was caught on the mid-wicket boundary and Matt Prior (25) was beaten by one which nipped back and hit the top of off stump.
When skipper Michael Yardy, playing his first game for a month after taking a break from cricket as he battles depression, played on to James Harris for a duck Sussex's quarter-final hopes were fading.
But Goodwin and Chris Nash (30) batted sensibly to add 58 in 53 balls and although Nash holed out in the 16th over, a target of 40 from the final five overs proved well within Sussex's reach.
Joe Gatting became Jones's third victim when he was caught at long off from the last ball of the 19th over with three runs still needed, but Ollie Rayner drove James Harris through the covers for the winning boundary.
Out of contention for the knockout stages, Glamorgan made four changes and were soon in trouble after winning the toss. Skipper Alviro Petersen was bowled by left-armer Chris Liddle for seven after Sussex had opened the innings with three overs of spin and Australian Mark Cosgrove (11), who had been dropped on nought, chipped a catch to mid-off in the fifth over.
Off-spinner Nash, having accounted for Cosgrove, picked up his second wicket when he bowled Gareth Rees, who played across the line, and when Nick James, playing his first Twenty20 game since 2007, was stumped off Yardy the Dragons were 47 for four in the 11th over.
Sussex bowled spin for 12 of the first 14 overs but when the pace bowlers returned Glamorgan duo Stewart Walters and Chris Cooke launched a spirited fightback by adding 64 from 35 balls for the fifth wicket.
Cooke was the principal aggressor with 42 off 18 balls including five sixes - two of which came off successive deliveries from Umar Gul. Walters, meanwhile, made 37 off 39 balls before Liddle bowled him off his pads.
The dismissal sparked another collapse as Gul picked up three wickets in his final two overs. Cooke slogged his slower ball to short fine leg in the 17th over and the Pakistani trapped Michael O'Shea and bowled David Brown to finish with three for 24.