Big man Alen Omic produced another good perfomance at the U20 European Championship on Wednesday, leading Slovenia with 14 points and eight rebounds
Slovenia's 70-63 victory over Spain, their sixth in a row at the U20 European Championship, might have hurt the Spanish but it terminated Turkey's dreams of entering the Quarter-Finals.
Turkey are the victims of the five-way tie that came as the byproduct of the hosts' Wednesday win, as they finished fifth in Second Round Group F.
Lithuania, Spain and Latvia advance and Italy, despite also being involved in the tie, were out of contention regardless of the result in this game.
On the night, the hosts of the U20 European Championship led for most of the way, but the Spaniards were always breathing on their backs.
However, Slovenia went on a 7-0 run in the end of the third quarter to pull away, 52-39.
Spain managed to close the gap to four points but Miha Lapornik banked in a three-pointer at the end of Slovenia's possession with 23 seconds left in the game, setting the Domzale arena on fire and deciding the outcome of the game for good.
Alen Omic was the top scorer for Slovenia with 14 points and eight rebounds, Klemen Prepelic had 12 points and five rebounds, while Luka Rupnik chipped in with 10 points.
Alejandro Abrines was the only Spanish player in double digits, with 18 points.
After finishing first in Group F, Slovenia will play France in the quarter-final, while Spain, who dropped to third place after the loss, have Germany waiting for the in the last eight.