Retiring veteran Michael Klinger regained his batting crown as Perth Scorchers beat Melbourne Stars by 27 runs at Optus Stadium on Sunday.
Set 183 for victory, the Stars were limited to 9-155 despite the best efforts of Glenn Maxwell (61 off 40 balls) and Marcus Stoinis (49 off 40).
The result was a blow to the Stars' final hopes, leaving them at 6-6 and still needing to win one more match to secure a top-four berth.
It also means the Brisbane Heat and Sydney Thunder are just one point behind the fourth-placed Stars and still in the hunt for a final spot.
The Scorchers (4-9) have the chance to avoid the wooden spoon if they can beat the Strikers in their final match in Adelaide on Saturday.
The Stars looked to be on track for victory, needing 66 off 31 balls with both Maxwell and Stoinis firing at the crease.
But their dismissals in the space of three balls turned the match on his head, with the Scorchers able to restrict the Stars from that point.
Nick Hobson took a good diving catch to dismiss Maxwell.
And Stoinis banged his bat on his pads several times in anger after driving a catch straight to AJ Tye at mid-wicket off the bowling of Mitch Marsh.
Klinger was handed and recalled to replace Shaun Marsh (hamstring) at the top of the order, and posted 30 off 31 balls to move back ahead of Chris Lynn on the all-time BBL runs list.
Lynn scored a duck for the Brisbane Heat earlier in the day to stay on 1945 runs, with Klinger moving to 1947.
Ashton Turner (69 off 42 balls) and Cameron Bancroft (44no off 27) produced important knocks to lift the Scorchers to 3-182 – their highest score of the season.
It was in stark contrast to their previous home match, when the Scorchers were skittled for 79 by the Melbourne Renegades.
Klinger, who announced earlier this week that this season would be his last for the Scorchers, came close to tears while being interviewed shortly after his dismissal in the 12th over.
"It's pretty emotional to see the crowd and my family up there," Klinger said.
"I'm not trying to cry here. The supporters have been great to me."
Scorchers XI: Michael Klinger (c), Josh Inglis, Cameron Bancroft (wk), Ashton Turner, Mitchell Marsh, Nick Hobson, Clint Hinchliffe, Nathan Coulter-Nile, Andrew Tye, Matthew Kelly, Jason Behrendorff
Stars XI: Ben Dunk, Marcus Stoinis, Peter Handscomb (wk), Glenn Maxwell (c), Nic Maddinson, Seb Gotch, Dwayne Bravo, Liam Plunkett, Adam Zampa, Jackson Bird, Dan Worrall