The sentence that contains an allusion is: "Your lengthy speech would have made Hamlet proud," she scoffed.
This sentence alludes to the character of Hamlet from William Shakespeare's play "Hamlet," implying that the speech was long and perhaps dramatic, similar to those found in the play.