- Fixed a bug in AF Reveal.

This commit is contained in:
Sloth
2012-06-04 08:02:38 +00:00
parent 4d1c7bdd80
commit ecdf69069e

View File

@@ -446,11 +446,11 @@ public final class AbilityFactoryReveal {
if (!noMove) { if (!noMove) {
CardList movedCards = new CardList(); CardList movedCards = new CardList();
CardList andOrCards = new CardList(); CardList andOrCards = new CardList();
for (final Card c : top) {
rest.add(c);
}
if (mitosis) { if (mitosis) {
valid = AbilityFactoryReveal.sharesNameWithCardOnBattlefield(top); valid = AbilityFactoryReveal.sharesNameWithCardOnBattlefield(top);
for (final Card c : top) {
rest.add(c);
}
} else if (!changeValid.equals("")) { } else if (!changeValid.equals("")) {
if (changeValid.contains("ChosenType")) { if (changeValid.contains("ChosenType")) {
changeValid = changeValid.replace("ChosenType", host.getChosenType()); changeValid = changeValid.replace("ChosenType", host.getChosenType());
@@ -461,9 +461,6 @@ public final class AbilityFactoryReveal {
andOrCards.removeAll(valid); andOrCards.removeAll(valid);
valid.addAll(andOrCards); valid.addAll(andOrCards);
} }
for (final Card c : top) {
rest.add(c);
}
if (valid.isEmpty() && choser.isHuman()) { if (valid.isEmpty() && choser.isHuman()) {
valid.add(dummy); valid.add(dummy);
} }