minor fix for PhantasmalImage choosing (still goes to graveyard for some reason)

This commit is contained in:
magenoxx 2012-03-26 11:00:15 +04:00
parent 523481b5a2
commit 08060d1893

View file

@ -95,6 +95,8 @@ class PhantasmalImageCopyEffect extends OneShotEffect<PhantasmalImageCopyEffect>
if ( player != null ) { if ( player != null ) {
Target target = new TargetPermanent(new FilterCreaturePermanent()); Target target = new TargetPermanent(new FilterCreaturePermanent());
if (target.canChoose(source.getControllerId(), game)) { if (target.canChoose(source.getControllerId(), game)) {
target.setRequired(true);
target.setNotTarget(true);
player.choose(Outcome.Copy, target, source.getSourceId(), game); player.choose(Outcome.Copy, target, source.getSourceId(), game);
Permanent permanent = game.getPermanent(target.getFirstTarget()); Permanent permanent = game.getPermanent(target.getFirstTarget());
if (permanent != null) { if (permanent != null) {