@Override public boolean apply(Game game, Ability source) { for (Effect sourceEffect : source.getEffects()) { if (sourceEffect instanceof SearchLibraryPutInPlayEffect) { Cards foundCards = new CardsImpl(((SearchLibraryPutInPlayEffect) sourceEffect).getTargets()); if (!foundCards.isEmpty()) { FixedTargets fixedTargets = new FixedTargets(foundCards, game); UntapTargetEffect untapEffect = new UntapTargetEffect(); untapEffect.setTargetPointer(fixedTargets); untapEffect.apply(game, source); BecomesCreatureTargetEffect becomesCreatureEffect = new BecomesCreatureTargetEffect(new HuntingWildsToken(), false, true, Duration.Custom); becomesCreatureEffect.setTargetPointer(fixedTargets); game.addEffect(becomesCreatureEffect, source); } return true; } } return false; } }