mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 02:30:08 -08:00
deck: added Freeform Unlimited deck type to play games with any cards amount (#13815)
This commit is contained in:
parent
e03a164bb3
commit
0cee5127dc
4 changed files with 37 additions and 1 deletions
|
|
@ -0,0 +1,34 @@
|
|||
package mage.deck;
|
||||
|
||||
import mage.cards.decks.Deck;
|
||||
import mage.cards.decks.DeckValidator;
|
||||
import mage.cards.decks.DeckValidatorErrorType;
|
||||
|
||||
/**
|
||||
* @author resech
|
||||
*/
|
||||
public class FreeformUnlimited extends DeckValidator {
|
||||
|
||||
public FreeformUnlimited() {
|
||||
this("Constructed - Freeform Unlimited", null);
|
||||
}
|
||||
|
||||
public FreeformUnlimited(String name, String shortName) {
|
||||
super(name, shortName);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDeckMinSize() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSideboardMinSize() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean validate(Deck deck) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue