mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
minor fix for PhantasmalImage choosing (still goes to graveyard for some reason)
This commit is contained in:
parent
523481b5a2
commit
08060d1893
1 changed files with 3 additions and 1 deletions
|
@ -95,6 +95,8 @@ class PhantasmalImageCopyEffect extends OneShotEffect<PhantasmalImageCopyEffect>
|
|||
if ( player != null ) {
|
||||
Target target = new TargetPermanent(new FilterCreaturePermanent());
|
||||
if (target.canChoose(source.getControllerId(), game)) {
|
||||
target.setRequired(true);
|
||||
target.setNotTarget(true);
|
||||
player.choose(Outcome.Copy, target, source.getSourceId(), game);
|
||||
Permanent permanent = game.getPermanent(target.getFirstTarget());
|
||||
if (permanent != null) {
|
||||
|
@ -103,7 +105,7 @@ class PhantasmalImageCopyEffect extends OneShotEffect<PhantasmalImageCopyEffect>
|
|||
permanent.assignNewId();
|
||||
permanent.getSubtype().add("Illusion");
|
||||
permanent.addAbility(new BecomesTargetTriggeredAbility(new SacrificeSourceEffect()), game);
|
||||
|
||||
|
||||
game.addEffect(new CopyEffect(permanent), source);
|
||||
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue