mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
updated MTGO 1v1 commander rules to ban partners
This commit is contained in:
parent
62584601a1
commit
e70b1fadbe
2 changed files with 6 additions and 1 deletions
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
package mage.deck;
|
package mage.deck;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
|
@ -23,6 +22,7 @@ import mage.filter.FilterMana;
|
||||||
public class Commander extends Constructed {
|
public class Commander extends Constructed {
|
||||||
|
|
||||||
protected List<String> bannedCommander = new ArrayList<>();
|
protected List<String> bannedCommander = new ArrayList<>();
|
||||||
|
protected boolean partnerAllowed = true;
|
||||||
|
|
||||||
public Commander() {
|
public Commander() {
|
||||||
this("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 || 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)");
|
invalid.put("Commander", "Sideboard must contain only the commander(s)");
|
||||||
valid = false;
|
valid = false;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -8,6 +8,8 @@ public class MTGO1v1Commander extends Commander {
|
||||||
|
|
||||||
public MTGO1v1Commander() {
|
public MTGO1v1Commander() {
|
||||||
super("MTGO 1v1 Commander");
|
super("MTGO 1v1 Commander");
|
||||||
|
partnerAllowed = false;
|
||||||
|
|
||||||
banned.add("Ancestral Recall");
|
banned.add("Ancestral Recall");
|
||||||
banned.add("Back to Basics");
|
banned.add("Back to Basics");
|
||||||
banned.add("Balance");
|
banned.add("Balance");
|
||||||
|
|
Loading…
Reference in a new issue