mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Rechanged ValidGrave to Valid<AnyZone> count method that was lost in the merge.
This commit is contained in:
@@ -1975,11 +1975,13 @@ public class CardFactoryUtil {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// count valid cards in the garveyard
|
// count valid cards in any specified zone/s
|
||||||
if (l[0].startsWith("ValidGrave")) {
|
if (l[0].startsWith("Valid") && !l[0].contains("Valid ")) {
|
||||||
String restrictions = l[0].replace("ValidGrave ", "");
|
String[] lparts = l[0].split(" ", 2);
|
||||||
|
final List<ZoneType> vZone = ZoneType.listValueOf(lparts[0].split("Valid")[1]);
|
||||||
|
String restrictions = l[0].replace(lparts[0] + " ", "");
|
||||||
final String[] rest = restrictions.split(",");
|
final String[] rest = restrictions.split(",");
|
||||||
List<Card> cards = Singletons.getModel().getGame().getCardsIn(ZoneType.Graveyard);
|
List<Card> cards = Singletons.getModel().getGame().getCardsIn(vZone);
|
||||||
cards = CardLists.getValidCards(cards, rest, cardController, c);
|
cards = CardLists.getValidCards(cards, rest, cardController, c);
|
||||||
|
|
||||||
n = cards.size();
|
n = cards.size();
|
||||||
|
|||||||
Reference in New Issue
Block a user