Krka Novo Mesto survived in a 78-75 thriller at KK Zagreb to seal their place in the EuroChallenge Last 16.
Zagreb had nothing but pride to play for after falling in their first four games in the competition.
They came out all guns blazing and almost treated their fans to a first victory.
With 6:59 to go, Zagreb had a 62-58 lead.
Krka's Chris Booker scored to spark a 14-4 run for the visitors and they stayed in front the rest of the way.
Zagreb got 22 points from Luka Zoric and 17 from Damir Mulaomerovic while Krka were led by Goran Ikonic's 23.
Krka head into the last week of play with a 4-1 record and the inside track to first place since they have a better goal differential than BK Prostejov (4-1), who have also sealed a place in the Last 16.
Krka and Prostejov split their two encounters.
Zagreb will go for win number one at Prostejov in the Czech Republic next week while Krka will be at home to Telekom Baskets Bonn.