mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
- Fixed a bug in AF Reveal.
This commit is contained in:
@@ -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();
|
||||||
if (mitosis) {
|
|
||||||
valid = AbilityFactoryReveal.sharesNameWithCardOnBattlefield(top);
|
|
||||||
for (final Card c : top) {
|
for (final Card c : top) {
|
||||||
rest.add(c);
|
rest.add(c);
|
||||||
}
|
}
|
||||||
|
if (mitosis) {
|
||||||
|
valid = AbilityFactoryReveal.sharesNameWithCardOnBattlefield(top);
|
||||||
} 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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user