deck: added Freeform Unlimited deck type to play games with any cards amount (#13815)

This commit is contained in:
ReSech 2025-07-02 13:21:25 +10:00 committed by GitHub
parent e03a164bb3
commit 0cee5127dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 37 additions and 1 deletions

View file

@ -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;
}
}