From 1926299be6da4189aec1bf638e6a8f09972a809e Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 6 Apr 2020 18:43:54 -0400 Subject: [PATCH] fixed an error with removing mutate cards --- .../src/mage/sets/Commander2020Edition.java | 34 ++++++++++++++++++- .../src/mage/sets/IkoriaLairOfBehemoths.java | 2 +- 2 files changed, 34 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/Commander2020Edition.java b/Mage.Sets/src/mage/sets/Commander2020Edition.java index 60e451ebe1..a8020b91b5 100644 --- a/Mage.Sets/src/mage/sets/Commander2020Edition.java +++ b/Mage.Sets/src/mage/sets/Commander2020Edition.java @@ -4,6 +4,9 @@ import mage.cards.ExpansionSet; import mage.constants.Rarity; import mage.constants.SetType; +import java.util.Arrays; +import java.util.List; + /** * @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("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 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" + ); } diff --git a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java index c20703336d..251f4c81f9 100644 --- a/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java +++ b/Mage.Sets/src/mage/sets/IkoriaLairOfBehemoths.java @@ -103,7 +103,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet { cards.removeIf(setCardInfo -> mutateNames.contains(setCardInfo.getName())); // remove when mutate is implemented } - static final List mutateNames = Arrays.asList( + private static final List mutateNames = Arrays.asList( "Archipelagore", "Auspicious Starrix", "Brokkos, Apex of Forever",