Skip to content

Commit

Permalink
* Fixed missing banned check in Oathreaker's decks;
Browse files Browse the repository at this point in the history
  • Loading branch information
JayDi85 committed Jun 8, 2019
1 parent 0636d47 commit 24c6d7d
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ public boolean validate(Deck deck) {
countCards(counts, deck.getCards());
countCards(counts, deck.getSideboard());

for (String bannedCard : banned) {
if (counts.containsKey(bannedCard)) {
invalid.put(bannedCard, "Banned");
valid = false;
}
}

for (Map.Entry<String, Integer> entry : counts.entrySet()) {
if (entry.getValue() > 1) {
if (!basicLandNames.contains(entry.getKey()) && !anyNumberCardsAllowed.contains(entry.getKey())) {
Expand Down

0 comments on commit 24c6d7d

Please sign in to comment.