The check to win the game happens only as the second ability resolves. For example, if there are 99 luck counters on As Luck Would Have It and you proliferate to add a counter, you won’t automatically win the game.