This might work to retrieve a stuck lure when shore fishing (depending how far out your lure is stuck)
In the past trout fishing, I usually get quite a few lures stuck about 10-15ft out, what I'll do is use a weight with that rubber sole where you can twist it onto your line and then cast it out far as possible. If done correctly and weight is heavy enough, the weight will get casted out way out pass the lure and hopefully it'll pull the lure in opposite direction and free it up. Doesn't hurt to try it since lure is stuck and pretty much you're going lose it.
It's not the best explanation on how to do it but hopefully you get the idea.
Basically you had a stuck lure, tighten the line until tip of rod is somewhat lined up with the shore and then give it about 3ft more line, tie/wrap weight (varies depending on your lure size/weight) then cast it out as hard and far as you can, the weight will fly out and hopefully dislodges the stuck lure and just reel in the weight, and if you feel your lure is free, take weight off and reel in the lure. If it's still stuck, try a few more times. You're basically using the weight to free the lure up.