We could say that "great" modifies "good luck" as opposed to "bad luck." The implication is that a person might have usual or normal good luck, but sometimes, a person has extraordinarily good luck. Most people would say that "great" modifies "good." It is redundant, though, so I would say it modifies the phrase "good luck."