mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
- Fixed Surgical Extraction
This commit is contained in:
parent
4cc19f5071
commit
90534ac100
1 changed files with 3 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue