* Fixed that Auras that were manifested had wrongly to select aura target.

This commit is contained in:
LevelX2 2015-01-31 14:07:47 +01:00
parent 8d6c25b3e8
commit 8ba2136b0e
2 changed files with 5 additions and 1 deletions

View file

@ -88,6 +88,10 @@ public class AuraReplacementEffect extends ReplacementEffectImpl {
UUID sourceId = event.getSourceId(); UUID sourceId = event.getSourceId();
UUID controllerId = event.getPlayerId(); 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 // Aura enters the battlefield attached
Object object = game.getState().getValue("attachTo:"+card.getId()); Object object = game.getState().getValue("attachTo:"+card.getId());
if (object != null && object instanceof PermanentCard) { if (object != null && object instanceof PermanentCard) {

View file

@ -51,7 +51,7 @@ public class Targets extends ArrayList<Target> {
} }
public List<Target> getUnchosen() { public List<Target> getUnchosen() {
List<Target> unchosen = new ArrayList<Target>(); List<Target> unchosen = new ArrayList<>();
for (Target target: this) { for (Target target: this) {
if (!target.isChosen()) { if (!target.isChosen()) {
unchosen.add(target); unchosen.add(target);