mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
* Fixed missing lands from some sets in lands/decks generation;
This commit is contained in:
parent
63937351c1
commit
434044eb0f
47 changed files with 64 additions and 53 deletions
|
|
@ -88,6 +88,8 @@ public abstract class ExpansionSet implements Serializable {
|
|||
protected Date releaseDate;
|
||||
protected ExpansionSet parentSet;
|
||||
protected SetType setType;
|
||||
|
||||
// TODO: 03.10.2018, hasBasicLands can be removed someday -- it's uses to optimize lands search in deck generation and lands adding (search all available lands from sets)
|
||||
protected boolean hasBasicLands = true;
|
||||
|
||||
protected String blockName;
|
||||
|
|
@ -559,6 +561,7 @@ public abstract class ExpansionSet implements Serializable {
|
|||
if (savedCardsInfos == null) {
|
||||
CardCriteria criteria = new CardCriteria();
|
||||
if (rarity == Rarity.LAND) {
|
||||
// get basic lands from parent set if current haven't it
|
||||
criteria.setCodes(!hasBasicLands && parentSet != null ? parentSet.code : this.code);
|
||||
} else {
|
||||
criteria.setCodes(this.code);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue