mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +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;
|
||||
|
||||
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 {
|
||||
|
|
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue