Last updated on .From the section Scottish Premiership

Aberdeen came from two goals down to preserve their eight-year unbeaten record at Kilmarnock - but slipped further behind third-place Motherwell in the Scottish Premiership.

Eamonn Brophy's penalty and Greg Kiltie's strike put Kilmarnock clear, but Niall McGinn volleyed in Connor McLennan's cross and the latter headed in the equaliser in the second half of an absorbing contest.

But despite battling back, Aberdeen slip three points behind Motherwell in the race for third.

The point keeps Kilmarnock in seventh place, four points off sixth place Hibernian, but they are yet to win in four matches since defeating Rangers on 12 February.

Aberdeen rely on Rugby Park hoodoo

Fewer things have been as certain in Scottish football in the last decade than Aberdeen not losing to Kilmarnock. Under Derek McInnes, they had lost just one match in 27 to the Ayrshire side, and stretching slightly further back hadn't been defeated at Rugby Park in 16 games, since December 2011.

Even in the Scottish Cup a fortnight ago, Alex Dyer's side were 1-0 up with two minutes remaining in normal time, then 3-2 ahead with four minutes of extra-time left, and still contrived to lose 4-3.

This latest collapse might leave them feeling that Aberdeen have conjured some sort of voodoo magic to ensure they will never be defeated at Rugby Park, especially given how emphatically Kilmarnock had rattled their opponents in the opening 25 minutes, and they finished the stronger too.

They carved open Aberdeen's unconvincing defensive pairing of Ash Taylor and Mikey Devlin - starting in the absence of the injured Scott McKenna - at will. And the in-form Brophy was at the heart of it.

The narrative surrounding him at the start of the season was of a striker who worked incessantly to get himself into scoring positions, but lacked the killer touch to take those chances. But his calm finish from the spot - awarded for a handball by Taylor - means he has scored six goals in his last six league games, more than he managed in his previous 32 appearances.

He had already flashed two warnings by forcing Joe Lewis into action, then striking a post having capitalised on Devlin's error.

Luckily he had some help from Kiltie, who punished a missed tackle by Taylor, which came from a terrific driving run by centre-back Stuart Findlay straight through the heart of the Aberdeen midfield.

But as sure as death and taxes, there was an Aberdeen response at Rugby Park. They settled, and McGinn showed the flash of quality they desperately needed as he drove the ball into the net after a nice delivery from McLennan.

And the Kilmarnock fans would have greeted the Aberdeen equaliser with weary familiarity, as Matty Kennedy dropped the shoulder to nip round Stephen O'Donnell and whip in a fierce cross, which McLennan dived to head in just five minutes into the second half.

In a stretched final 40 minutes, both sides had chances to grab a winner. Lewis stopped two thunderous Brophy free-kicks, while the Aberdeen goalkeeper also managed to beat clear O'Donnell's Zidane-esque volley. Nicke Kabamba also failed to steer two headers into the net from decent positions in the box, while Devlin and Curtis Main went close for Aberdeen.

But after another dramatic 90 minutes between these pair, Kilmarnock must wonder if they will ever beat Aberdeen at home again.

The visitors meanwhile, who were without top-scorer Sam Cosgrove due to a back injury, continue to limp in pursuit of third-place.

Man of the match - Connor McLennan

BBC Scotland's John Barnes at Rugby Park

McLennan played a major part in this Aberdeen comeback. He provided the cross for McGinn's goal and then was in the right place to head in Kennedy's cross for the equaliser. However, he was treading a thin line, having been booked and manager McInnes replaced him with Bruce Anderson.

Gary Dicker and Findlay both produced fine performances for Kilmarnock, while Brophy caught the eye with his shoot on sight policy and his composure to score from the penalty spot.

'It's not a penalty' - reaction

Kilmarnock manager Alex Dyer: "The team performance was very good in periods. We start very well, go two goals up and then we panic for the last 15 minutes of the first half and carry it on in the second.

"But, when it goes back to 2-2, we started playing again. I'm very disappointed. Like last time, we had chances to win the game."

McInnes pleased with 'good point' at Kilmarnock

Aberdeen manager Derek McInnes: "The first goal, for me, is not a penalty. It's hit Ash Taylor in the back. He's turned round and kept his hands and arms right in and I'm disappointed the referee has given a penalty for that.

"It's a good point in the end after being two goals down."