mirror of
https://github.com/correl/mage.git
synced 2025-01-13 19:11:33 +00:00
Fixed missing special rare cards from Dragon's Maze boosters;
This commit is contained in:
parent
ab8a4eb26a
commit
4d8369afbc
1 changed files with 21 additions and 37 deletions
|
@ -1,8 +1,5 @@
|
||||||
|
|
||||||
package mage.sets;
|
package mage.sets;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
|
||||||
import java.util.List;
|
|
||||||
import mage.cards.ExpansionSet;
|
import mage.cards.ExpansionSet;
|
||||||
import mage.cards.repository.CardCriteria;
|
import mage.cards.repository.CardCriteria;
|
||||||
import mage.cards.repository.CardInfo;
|
import mage.cards.repository.CardInfo;
|
||||||
|
@ -11,8 +8,10 @@ import mage.constants.CardType;
|
||||||
import mage.constants.Rarity;
|
import mage.constants.Rarity;
|
||||||
import mage.constants.SetType;
|
import mage.constants.SetType;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
|
||||||
* @author LevelX2
|
* @author LevelX2
|
||||||
*/
|
*/
|
||||||
public final class DragonsMaze extends ExpansionSet {
|
public final class DragonsMaze extends ExpansionSet {
|
||||||
|
@ -23,7 +22,7 @@ public final class DragonsMaze extends ExpansionSet {
|
||||||
return instance;
|
return instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
private List<CardInfo> savedSpecialRares = new ArrayList<>();
|
private final List<CardInfo> savedSpecialRares = new ArrayList<>();
|
||||||
|
|
||||||
private DragonsMaze() {
|
private DragonsMaze() {
|
||||||
super("Dragon's Maze", "DGM", ExpansionSet.buildDate(2013, 5, 3), SetType.EXPANSION);
|
super("Dragon's Maze", "DGM", ExpansionSet.buildDate(2013, 5, 3), SetType.EXPANSION);
|
||||||
|
@ -224,42 +223,27 @@ public final class DragonsMaze extends ExpansionSet {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CardInfo> getSpecialRare() {
|
public List<CardInfo> getSpecialRare() {
|
||||||
if (savedSpecialRares == null) {
|
if (savedSpecialRares.isEmpty()) {
|
||||||
CardCriteria criteria = new CardCriteria();
|
fillSpecialRares("GTC", "Breeding Pool");
|
||||||
criteria.setCodes("GTC").name("Breeding Pool");
|
fillSpecialRares("GTC", "Godless Shrine");
|
||||||
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
fillSpecialRares("GTC", "Sacred Foundry");
|
||||||
criteria = new CardCriteria();
|
fillSpecialRares("GTC", "Stomping Ground");
|
||||||
criteria.setCodes("GTC").name("Godless Shrine");
|
fillSpecialRares("GTC", "Watery Grave");
|
||||||
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
fillSpecialRares("RTR", "Blood Crypt");
|
||||||
criteria = new CardCriteria();
|
fillSpecialRares("RTR", "Hallowed Fountain");
|
||||||
criteria.setCodes("GTC").name("Sacred Foundry");
|
fillSpecialRares("RTR", "Overgrown Tomb");
|
||||||
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
fillSpecialRares("RTR", "Steam Vents");
|
||||||
criteria = new CardCriteria();
|
fillSpecialRares("RTR", "Temple Garden");
|
||||||
criteria.setCodes("GTC").name("Stomping Ground");
|
|
||||||
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
|
||||||
criteria = new CardCriteria();
|
|
||||||
criteria.setCodes("GTC").name("Watery Grave");
|
|
||||||
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
|
||||||
|
|
||||||
criteria = new CardCriteria();
|
|
||||||
criteria.setCodes("RTR").name("Blood Crypt");
|
|
||||||
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
|
||||||
criteria = new CardCriteria();
|
|
||||||
criteria.setCodes("RTR").name("Hallowed Fountain");
|
|
||||||
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
|
||||||
criteria = new CardCriteria();
|
|
||||||
criteria.setCodes("RTR").name("Overgrown Tomb");
|
|
||||||
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
|
||||||
criteria = new CardCriteria();
|
|
||||||
criteria.setCodes("RTR").name("Steam Vents");
|
|
||||||
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
|
||||||
criteria = new CardCriteria();
|
|
||||||
criteria.setCodes("RTR").name("Temple Garden");
|
|
||||||
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
|
||||||
}
|
}
|
||||||
return new ArrayList<>(savedSpecialRares);
|
return new ArrayList<>(savedSpecialRares);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void fillSpecialRares(String setCode, String cardName) {
|
||||||
|
CardCriteria criteria = new CardCriteria();
|
||||||
|
criteria.setCodes(setCode).name(cardName);
|
||||||
|
savedSpecialRares.addAll(CardRepository.instance.findCards(criteria));
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<CardInfo> getSpecialMythic() {
|
public List<CardInfo> getSpecialMythic() {
|
||||||
CardCriteria criteria = new CardCriteria();
|
CardCriteria criteria = new CardCriteria();
|
||||||
|
|
Loading…
Reference in a new issue