* Fixed some "enter the battlefield as a copy of " effects (e.g. Phyrexian Metamorph, Quicksilver Gargantuan) that were handled targeted and so protection abilities could prevent that a permanent was selected.

This commit is contained in:
LevelX2 2014-08-07 15:53:44 +02:00
parent fe7ec072c1
commit 2b3352b3b8
4 changed files with 9 additions and 4 deletions

View file

@ -100,6 +100,7 @@ class CopyArtifactEffect extends OneShotEffect {
Permanent sourcePermanent = game.getPermanent(source.getSourceId());
if (player != null && sourcePermanent != null) {
Target target = new TargetPermanent(filter);
target.setNotTarget(true);
if (target.canChoose(source.getControllerId(), game)) {
player.choose(Outcome.Copy, target, source.getSourceId(), game);
Permanent copyFromPermanent = game.getPermanent(target.getFirstTarget());

View file

@ -105,6 +105,7 @@ class PhyrexianMetamorphEffect extends OneShotEffect {
Permanent sourcePermanent = game.getPermanent(source.getSourceId());
if (player != null && sourcePermanent != null) {
Target target = new TargetPermanent(filter);
target.setNotTarget(true);
if (target.canChoose(source.getControllerId(), game)) {
player.choose(Outcome.Copy, target, source.getSourceId(), game);
Permanent copyFromPermanent = game.getPermanent(target.getFirstTarget());

View file

@ -45,14 +45,13 @@ import mage.game.permanent.Permanent;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
import mage.target.Target;
/**
* @author ayratn
*/
public class QuicksilverGargantuan extends CardImpl {
private static final String text = "You may have {this} enter the battlefield as a copy of any creature on the battlefield, except it's still 7/7";
public QuicksilverGargantuan(UUID ownerId) {
super(ownerId, 39, "Quicksilver Gargantuan", Rarity.MYTHIC, new CardType[]{CardType.CREATURE}, "{5}{U}{U}");
this.expansionSetCode = "SOM";
@ -61,8 +60,11 @@ public class QuicksilverGargantuan extends CardImpl {
this.power = new MageInt(7);
this.toughness = new MageInt(7);
Ability ability = new EntersBattlefieldAbility(new QuicksilverGargantuanCopyEffect(), text);
ability.addTarget(new TargetCreaturePermanent());
Ability ability = new EntersBattlefieldAbility(new QuicksilverGargantuanCopyEffect(),
"You may have {this} enter the battlefield as a copy of any creature on the battlefield, except it's still 7/7");
Target target = new TargetCreaturePermanent();
target.setNotTarget(true);
ability.addTarget(target);
this.addAbility(ability);
}

View file

@ -82,6 +82,7 @@ public class CopyPermanentEffect extends OneShotEffect {
Permanent sourcePermanent = game.getPermanent(source.getSourceId());
if (player != null && sourcePermanent != null) {
Target target = new TargetPermanent(filter);
target.setNotTarget(true);
if (target.canChoose(source.getControllerId(), game)) {
player.choose(Outcome.Copy, target, source.getSourceId(), game);
Permanent copyFromPermanent = game.getPermanent(target.getFirstTarget());