Campbell improves to 41-9 overall and 17-5 in Big South games, matching its program record for total wins. Liberty drops to 27-22 on the season and 11-8 in league play.
Trail reached to lead off the bottom of the 13th after being hit by the Ashton Perritt offering. The junior then moved to second on a Michael DeLucia sacrifice bunt, and advanced to third on Will Albertson's fly out to right.
With a 0-1 count, Ray looped the RBI base hit into shallow left field, scoring Trail from third to win it for the Camels. It was Ray's first hit of the night, coming on his sixth plate appearance.
Ryan Thompson, who picked up the five-inning win in relief, surrendered only three hits, striking out five and walking two, moving to 7-0 on the season. A junior righthander, Thompson faced the minimum in the 10th, 11th and 12th. His fifth strikeout ended a Liberty threat in the top of the 13th with two on.
The Flames scored the game's first run in their first at-bat of the night, plating a run on Danny Grauer's two-out RBI single, scoring Perrett, who reached on a hit by pitch to lead off the game.
From there, Liberty baserunners reached third just twice more, in the seventh and ninth, as Mattes retired 13 in a row from a strikeout to end the second until Ryan Cordell's single to start the seventh.
The Camels tied the game at 1-all in the fourth, loading the bases before Albertson's walk scored John Reilly from third, who collected two of Campbell's seven hits on the night.
Campbell, who left 12 men on base in the win, put runners in scoring position in seven different innings.
Perritt, who started Friday's game in left field, took the loss, falling to 3-1 after allowing a run on three hits with a walk in 4 1/3 innings. Jared Lyons pitched three innings, striking out three and walking two. Josh Richardson, Liberty's starter, went 5 1/3, allowing a run on four hits with three strikeouts and four walks.
The series will continue tomorrow at 6 p.m. and Sunday at 1 p.m.
The Camels have one more series on their regular season schedule, hosting New Orleans May 16-18 at Jim Perry Stadium. The Big South Championships begin May 21 in Lynchburg, Va.