Re-enabling Basic Lands in Rarity Statistics

This is done similarly in DeckStats (Rarity grouped) deck export.

Signed-off-by: leriomaggio <valeriomaggio@gmail.com>
This commit is contained in:
leriomaggio
2021-09-07 11:43:09 +01:00
parent c2e34573f8
commit 7c1bcaaf34

View File

@@ -444,8 +444,8 @@ public class DeckImport<TItem extends InventoryItem, TModel extends DeckBase> ex
cardTypeStats.add(currentKeySection, coreTypeName, tokenNumber); cardTypeStats.add(currentKeySection, coreTypeName, tokenNumber);
} }
// update rarity stats // update rarity stats
if (!t.getCard().isVeryBasicLand()) rarityStats.add(currentKeySection, t.getCard().getRarity().name(), tokenNumber);
rarityStats.add(currentKeySection, t.getCard().getRarity().name(), tokenNumber);
// update colour stats // update colour stats
if (!t.getCard().getRules().getType().isLand()) { if (!t.getCard().getRules().getType().isLand()) {
String manaCost = String.format("CMC %d", t.getCard().getRules().getManaCost().getCMC()); String manaCost = String.format("CMC %d", t.getCard().getRules().getManaCost().getCMC());