mirror of
https://github.com/correl/mage.git
synced 2025-04-08 17:00:07 -09:00
* Fixed freeform commander that's it not allowed snow lands and cards duplication (#5262)
This commit is contained in:
parent
c34c13f7b7
commit
b4fdce53c4
1 changed files with 0 additions and 15 deletions
|
@ -20,7 +20,6 @@ public class FreeformCommander extends Constructed {
|
|||
|
||||
protected List<String> bannedCommander = new ArrayList<>();
|
||||
private static final Map<String, Integer> pdAllowed = new HashMap<>();
|
||||
private static boolean setupAllowed = false;
|
||||
|
||||
public FreeformCommander() {
|
||||
this("Freeform Commander");
|
||||
|
@ -43,20 +42,6 @@ public class FreeformCommander extends Constructed {
|
|||
valid = false;
|
||||
}
|
||||
|
||||
List<String> basicLandNames = new ArrayList<>(Arrays.asList("Forest", "Island", "Mountain", "Swamp", "Plains", "Wastes"));
|
||||
Map<String, Integer> counts = new HashMap<>();
|
||||
countCards(counts, deck.getCards());
|
||||
countCards(counts, deck.getSideboard());
|
||||
|
||||
for (Map.Entry<String, Integer> entry : counts.entrySet()) {
|
||||
if (entry.getValue() > 1) {
|
||||
if (!basicLandNames.contains(entry.getKey())) {
|
||||
invalid.put(entry.getKey(), "Too many: " + entry.getValue());
|
||||
valid = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
generateFreeformHash();
|
||||
|
||||
if (deck.getSideboard().size() < 1 || deck.getSideboard().size() > 2) {
|
||||
|
|
Loading…
Add table
Reference in a new issue