magarena/src/magic/generator/Human_Law_DeckGenerator.java

53 lines
1.3 KiB
Java

package magic.generator;
import magic.model.MagicCardDefinition;
import magic.model.MagicCondensedDeck;
import magic.model.MagicDeckProfile;
import magic.model.MagicSubType;
public class Human_Law_DeckGenerator extends RandomDeckGenerator {
private static final String colorText = "w";
private static final String[] cards = {
"Champion of the Parish",
"Champion of the Parish",
"Champion of the Parish",
"Elite Vanguard",
"Gideon's Lawkeeper",
"Hero of Bladehold",
"Hero of Bladehold",
"Hero of Bladehold",
"Mirran Crusader",
"Mirran Crusader",
"Angelic Destiny",
"Angelic Destiny",
"Honor of the Pure",
"Honor of the Pure",
"Day of Judgment"
};
public String getColorText() {
return colorText;
}
@Override
public int getMinRarity() {
return 2;
}
@Override
public boolean acceptPossibleSpellCard(final MagicCardDefinition card) {
return !card.isCreature() || card.hasSubType(MagicSubType.Human);
}
@Override
public void addRequiredSpells(final MagicCondensedDeck deck) {
addRequiredCards(deck, cards);
}
@Override
public void setColors(final MagicDeckProfile profile) {
profile.setColors(getColorText());
}
}