Set target of CopyPermanentEffect to required.

This commit is contained in:
LevelX2 2013-05-02 17:10:32 +02:00
parent 593858118f
commit bc03760e08

View file

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