* Fixed missing banned check in Oathreaker's decks;

This commit is contained in:
Oleg Agafonov 2019-06-08 09:29:37 +04:00
parent 0636d470e2
commit 24c6d7d4f4

View file

@ -93,6 +93,13 @@ public class Oathbreaker extends Vintage {
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())) {