public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getControllerId());
if (player != null) {
TargetCardInLibrary targetGoblins = new TargetCardInLibrary(0, Integer.MAX_VALUE, goblinFilter);
Cards cards = new CardsImpl();
if (player.searchLibrary(targetGoblins, game)) {
for (UUID targetId : targetGoblins.getTargets()) {
Card card = player.getLibrary().remove(targetId, game);
if (card != null) {
cards.add(card);
}