Fixed Surgical Extraction
@@ -16,11 +16,11 @@ import mage.filter.predicate.mageobject.NamePredicate;
import mage.game.Game;
import mage.players.Player;
import mage.target.common.TargetCardInGraveyard;
-import mage.target.common.TargetCardInHand;
import mage.target.common.TargetCardInLibrary;
import java.util.List;
import java.util.UUID;
+import mage.target.TargetCard;
/**
* @author North
@@ -102,7 +102,8 @@ class SurgicalExtractionEffect extends OneShotEffect {
// cards in Hand
filterNamedCard.setMessage("card named " + nameToSearch + " in the hand of " + owner.getName());
- TargetCardInHand targetCardInHand = new TargetCardInHand(0, Integer.MAX_VALUE, filterNamedCard);
+ TargetCard targetCardInHand = new TargetCard(0, Integer.MAX_VALUE, Zone.HAND, filterNamedCard);
+ targetCardInHand.setNotTarget(true);
if (controller.chooseTarget(Outcome.Exile, owner.getHand(), targetCardInHand, source, game)) {
List<UUID> targets = targetCardInHand.getTargets();
for (UUID targetId : targets) {
