From c7b2d0300805536eeddd89e153641af75cde5eba Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sun, 1 Nov 2020 22:03:08 -0500 Subject: [PATCH] [CMR] Implemented Imoti, Celebrant of Bounty --- .../mage/cards/i/ImotiCelebrantOfBounty.java | 56 +++++++++++++++++++ Mage.Sets/src/mage/sets/CommanderLegends.java | 1 + Utils/mtg-cards-data.txt | 1 + 3 files changed, 58 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/i/ImotiCelebrantOfBounty.java diff --git a/Mage.Sets/src/mage/cards/i/ImotiCelebrantOfBounty.java b/Mage.Sets/src/mage/cards/i/ImotiCelebrantOfBounty.java new file mode 100644 index 00000000000..51015c50ced --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/ImotiCelebrantOfBounty.java @@ -0,0 +1,56 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.GainAbilitySpellsEffect; +import mage.abilities.keyword.CascadeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.ComparisonType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.filter.FilterObject; +import mage.filter.predicate.mageobject.ConvertedManaCostPredicate; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ImotiCelebrantOfBounty extends CardImpl { + + private static final FilterObject filter + = new FilterObject("Spells you cast with converted mana cost 6 or greater"); + + static { + filter.add(new ConvertedManaCostPredicate(ComparisonType.MORE_THAN, 5)); + } + + public ImotiCelebrantOfBounty(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}{U}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.NAGA); + this.subtype.add(SubType.DRUID); + this.power = new MageInt(3); + this.toughness = new MageInt(1); + + // Cascade + this.addAbility(new CascadeAbility()); + + // Spells you cast with converted mana cost 6 or greater have cascade. + this.addAbility(new SimpleStaticAbility( + new GainAbilitySpellsEffect(new CascadeAbility(false), filter) + )); + } + + private ImotiCelebrantOfBounty(final ImotiCelebrantOfBounty card) { + super(card); + } + + @Override + public ImotiCelebrantOfBounty copy() { + return new ImotiCelebrantOfBounty(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegends.java b/Mage.Sets/src/mage/sets/CommanderLegends.java index 6e42099adc5..70c5cad8c2c 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegends.java +++ b/Mage.Sets/src/mage/sets/CommanderLegends.java @@ -102,6 +102,7 @@ public final class CommanderLegends extends ExpansionSet { cards.add(new SetCardInfo("Hunter's Insight", 232, Rarity.UNCOMMON, mage.cards.h.HuntersInsight.class)); cards.add(new SetCardInfo("Ikra Shidiqi, the Usurper", 519, Rarity.MYTHIC, mage.cards.i.IkraShidiqiTheUsurper.class)); cards.add(new SetCardInfo("Immaculate Magistrate", 234, Rarity.RARE, mage.cards.i.ImmaculateMagistrate.class)); + cards.add(new SetCardInfo("Imoti, Celebrant of Bounty", 280, Rarity.UNCOMMON, mage.cards.i.ImotiCelebrantOfBounty.class)); cards.add(new SetCardInfo("Imperious Perfect", 235, Rarity.UNCOMMON, mage.cards.i.ImperiousPerfect.class)); cards.add(new SetCardInfo("Inspiring Roar", 23, Rarity.COMMON, mage.cards.i.InspiringRoar.class)); cards.add(new SetCardInfo("Intangible Virtue", 24, Rarity.UNCOMMON, mage.cards.i.IntangibleVirtue.class)); diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 1af4889bb0c..7ee72e9bd64 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -39440,6 +39440,7 @@ Ghen, Arcanum Weaver|Commander Legends|275|R|{R}{W}{B}|Legendary Creature - Huma Gnostro, Voice of the Crags|Commander Legends|276|R|{1}{U}{R}{W}|Legendary Creature - Chimera|3|3|{T}: Choose one. X is the number of spells you've cast this turn.$• Scry X.$• Gnostro, Voice of the Crags deals X damage to target creature.$• You gain X life.| Gor Muldrak, Amphinologist|Commander Legends|277|R|{1}{G}{U}|Legendary Creature - Human Scout|3|2|You and permanents you control have protection from Salamanders.$At the beginning of your end step, each player who controls the fewest creatures creates a 4/3 blue Salamander Warrior creature token.| Hans Eriksson|Commander Legends|279|R|{2}{R}{G}|Legendary Creature - Human Scout|1|4|Whenever Hans Eriksson attacks, reveal the top card of your library. If it's a creature card, put it onto the battlefield tapped and attacking defending player or a planeswalker they control. Otherwise, put that card into your hand. When you put a creature card onto the battlefield this way, it fights Hans Eriksson.| +Imoti, Celebrant of Bounty|Commander Legends|280|U|{3}{G}{U}|Legendary Creature - Naga Druid|3|1|Cascade$Spells you cast with converted mana cost 6 or greater have cascade.| Liesa, Shroud of Dusk|Commander Legends|286|R|{2}{W}{W}{B}|Legendary Creature - Angel|5|5|Rather than pay {2} for each previous time you've cast this spell from the command zone this game, pay 2 life that many times.$Flying, lifelink$Whenever a player casts a spell, they lose 2 life.| Nymris, Oona's Trickster|Commander Legends|288|R|{3}{U}{B}|Legendary Creature - Faerie Knight|1|6|Flash$Flying$Whenever you cast your first spell during each opponent's turn, look at the top two cards of your library. Put one of those cards into your hand and the other into your graveyard.| Obeka, Brute Chronologist|Commander Legends|289|R|{1}{U}{B}{R}|Legendary Creature - Ogre Wizard|3|4|{T}: The player whose turn it is may end the turn.|