mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
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.
This commit is contained in:
@@ -778,6 +778,11 @@ public class GameAction {
|
|||||||
|
|
||||||
while (!a.isEmpty() && !AllZoneUtil.isCardInPlay("Mirror Gallery")) {
|
while (!a.isEmpty() && !AllZoneUtil.isCardInPlay("Mirror Gallery")) {
|
||||||
CardList b = AllZoneUtil.getCardsInPlay(a.get(0).getName());
|
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);
|
a.remove(0);
|
||||||
if (1 < b.size()) {
|
if (1 < b.size()) {
|
||||||
for (int i = 0; i < b.size(); i++)
|
for (int i = 0; i < b.size(); i++)
|
||||||
|
|||||||
Reference in New Issue
Block a user