From 8ba2136b0e70718ac151f9ab7cf6d4ef792fbd3b Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 31 Jan 2015 14:07:47 +0100 Subject: [PATCH] * Fixed that Auras that were manifested had wrongly to select aura target. --- Mage/src/mage/abilities/effects/AuraReplacementEffect.java | 4 ++++ Mage/src/mage/target/Targets.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/abilities/effects/AuraReplacementEffect.java b/Mage/src/mage/abilities/effects/AuraReplacementEffect.java index 548ba5fa08..99602f9073 100644 --- a/Mage/src/mage/abilities/effects/AuraReplacementEffect.java +++ b/Mage/src/mage/abilities/effects/AuraReplacementEffect.java @@ -88,6 +88,10 @@ public class AuraReplacementEffect extends ReplacementEffectImpl { UUID sourceId = event.getSourceId(); UUID controllerId = event.getPlayerId(); + // Aura cards that go to battlefield face down (Manifest) don't have to select targets + if (card.isFaceDown()) { + return false; + } // Aura enters the battlefield attached Object object = game.getState().getValue("attachTo:"+card.getId()); if (object != null && object instanceof PermanentCard) { diff --git a/Mage/src/mage/target/Targets.java b/Mage/src/mage/target/Targets.java index 2a665c39b3..8544fa944a 100644 --- a/Mage/src/mage/target/Targets.java +++ b/Mage/src/mage/target/Targets.java @@ -51,7 +51,7 @@ public class Targets extends ArrayList { } public List getUnchosen() { - List unchosen = new ArrayList(); + List unchosen = new ArrayList<>(); for (Target target: this) { if (!target.isChosen()) { unchosen.add(target);