fixed an error with removing mutate cards

This commit is contained in:
Evan Kranzler 2020-04-06 18:43:54 -04:00
parent eb39c57109
commit 1926299be6
2 changed files with 34 additions and 2 deletions

View file

@ -4,6 +4,9 @@ import mage.cards.ExpansionSet;
import mage.constants.Rarity; import mage.constants.Rarity;
import mage.constants.SetType; import mage.constants.SetType;
import java.util.Arrays;
import java.util.List;
/** /**
* @author TheElk801 * @author TheElk801
*/ */
@ -65,6 +68,35 @@ public final class Commander2020Edition extends ExpansionSet {
cards.add(new SetCardInfo("Trynn, Champion of Freedom", 1, Rarity.MYTHIC, mage.cards.t.TrynnChampionOfFreedom.class)); cards.add(new SetCardInfo("Trynn, Champion of Freedom", 1, Rarity.MYTHIC, mage.cards.t.TrynnChampionOfFreedom.class));
cards.add(new SetCardInfo("Villainous Wealth", 233, Rarity.RARE, mage.cards.v.VillainousWealth.class)); cards.add(new SetCardInfo("Villainous Wealth", 233, Rarity.RARE, mage.cards.v.VillainousWealth.class));
cards.removeIf(setCardInfo -> IkoriaLairOfBehemoths.mutateNames.contains(setCardInfo.getName())); // remove when mutate is implemented cards.removeIf(setCardInfo -> mutateNames.contains(setCardInfo.getName())); // remove when mutate is implemented
} }
private static final List<String> mutateNames = Arrays.asList(
"Archipelagore",
"Auspicious Starrix",
"Brokkos, Apex of Forever",
"Cavern Whisperer",
"Chittering Harvester",
"Cloudpiercer",
"Cubwarden",
"Dirge Bat",
"Dreamtail Heron",
"Everquill Phoenix",
"Gemrazer",
"Glowstone Recluse",
"Huntmaster Liger",
"Illuna, Apex of Wishes",
"Insatiable Hemophage",
"Lore Drakkis",
"Migratory Greathorn",
"Mindleecher",
"Nethroi, Apex of Death",
"Otrimi, the Ever-Playful",
"Pouncing Shoreshark",
"Sea-Dasher Octopus",
"Snapdax, Apex of the Hunt",
"Souvenir Snatcher",
"Trumpeting Gnarr",
"Vadrok, Apex of Thunder"
);
} }

View file

@ -103,7 +103,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
cards.removeIf(setCardInfo -> mutateNames.contains(setCardInfo.getName())); // remove when mutate is implemented cards.removeIf(setCardInfo -> mutateNames.contains(setCardInfo.getName())); // remove when mutate is implemented
} }
static final List<String> mutateNames = Arrays.asList( private static final List<String> mutateNames = Arrays.asList(
"Archipelagore", "Archipelagore",
"Auspicious Starrix", "Auspicious Starrix",
"Brokkos, Apex of Forever", "Brokkos, Apex of Forever",