updated MTGO 1v1 commander rules to ban partners

This commit is contained in:
Evan Kranzler 2018-07-27 11:38:08 -04:00
parent 62584601a1
commit e70b1fadbe
2 changed files with 6 additions and 1 deletions

View file

@ -1,4 +1,3 @@
package mage.deck;
import java.util.*;
@ -23,6 +22,7 @@ import mage.filter.FilterMana;
public class Commander extends Constructed {
protected List<String> bannedCommander = new ArrayList<>();
protected boolean partnerAllowed = true;
public Commander() {
this("Commander");
@ -105,6 +105,9 @@ public class Commander extends Constructed {
}
if (deck.getSideboard().size() < 1 || deck.getSideboard().size() > 2) {
if ((deck.getSideboard().size() > 1 && !partnerAllowed)) {
invalid.put("Commander", "You may only have one commander");
}
invalid.put("Commander", "Sideboard must contain only the commander(s)");
valid = false;
} else {

View file

@ -8,6 +8,8 @@ public class MTGO1v1Commander extends Commander {
public MTGO1v1Commander() {
super("MTGO 1v1 Commander");
partnerAllowed = false;
banned.add("Ancestral Recall");
banned.add("Back to Basics");
banned.add("Balance");