From 8de408cd65fab0efc97190712a6ffdc1c6862ad5 Mon Sep 17 00:00:00 2001 From: slapshot5 Date: Mon, 5 Sep 2011 22:28:08 +0000 Subject: [PATCH] fix for having 2 Legendary creatures with the same name on the battlefield, but one of them is face down both going to the graveyard. Now, isFaceDown() is checked. --- src/main/java/forge/GameAction.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/forge/GameAction.java b/src/main/java/forge/GameAction.java index e2678df3c8d..4d857e3f154 100644 --- a/src/main/java/forge/GameAction.java +++ b/src/main/java/forge/GameAction.java @@ -778,6 +778,11 @@ public class GameAction { while (!a.isEmpty() && !AllZoneUtil.isCardInPlay("Mirror Gallery")) { CardList b = AllZoneUtil.getCardsInPlay(a.get(0).getName()); + b = b.filter(new CardListFilter() { + public boolean addCard(final Card c) { + return !c.isFaceDown(); + } + }); a.remove(0); if (1 < b.size()) { for (int i = 0; i < b.size(); i++)