Jonathan Sexton kicked Leinster past the Scarlets at the RDS to boost his chances of featuring for Ireland against England in next Saturday's RBS 6 Nations showdown.
Sexton drove a rusty Leinster to their 11th straight league win at their Dublin base, converting Isa Nacewa's try, firing over five penalties and grabbing a late try of his own for a 22-point haul.
But the victory was marred by an early injury suffered by Leinster's Sean O'Brien, who is facing up to 12 weeks on the sidelines after suffering a broken leg.
The promising flanker had to be carried off on a stretcher, just 24 hours after fellow Ireland hopeful Donnacha Ryan injured his shoulder in action for Munster.
The Scarlets will be kicking themselves as this was a match they could have easily won. They failed to convert a number of try-scoring chances, the most notable of which saw Rob McCusker knock on after blocking Shaun Berne's 70th-minute clearance kick.
Jonathan Davies and the fit-again Regan King showed well early on for the visitors but when Deacon Manu was isolated at a midfield ruck after 11 minutes, Sexton smacked over the resulting penalty for the opening score.
Davies rumbled forward to set up Rhys Priestland for a levelling penalty and the Scarlets surged 8-3 ahead, just a minute later, with one of the best tries of the season.
A fantastic long range break, highlighted by deft passes from King and Johnathan Edwards, caught Leinster napping and hooker Ken Owens, chasing his first Welsh cap against France next weekend, finished it off in the left corner.
Priestland failed to add the extras and Leinster soon increased their intensity, big prop CJ van de Linde being held up short before space was created on the left for Nacewa to go over.
Sexton nailed a terrific conversion from close to the touchline and swapped further penalties with Priestland as Leinster went in at the break with a 13-11 lead.
When Stan Wright was punished for not rolling away, four minutes into the second half, Scarlets fly-half Priestland kicked his side back in front but ultimately, luck was not with the Welsh region.
Daniel Evans was inches away for sending King over for a try - Fergus McFadden doing well to intercept close to the Leinster try-line - and the Scarlets pack were thwarted at close range on a couple of occasions as Shane Jennings and his team-mates kept them at bay.
Three well-struck penalties from the in-form Sexton stretched Leinster more than a converted score clear and he ran a good support line, following a line break from Berne, to take a pass from debutant Andrew Conway and score the clinching try four minutes from time.
Sexton went narrowly wide with the extras and salt was rubbed into the Scarlets wounds when Ireland Under-20 starlet Conway recovered to force a knock-on from Andy Fenby, just metres from the home line.