diff --git a/Mage.Sets/src/mage/cards/i/ImperiousMindbreaker.java b/Mage.Sets/src/mage/cards/i/ImperiousMindbreaker.java new file mode 100644 index 0000000000..b7413c0130 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/ImperiousMindbreaker.java @@ -0,0 +1,52 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.dynamicvalue.common.SourcePermanentToughnessValue; +import mage.abilities.effects.common.MillCardsEachPlayerEffect; +import mage.abilities.effects.common.continuous.GainAbilityPairedEffect; +import mage.abilities.keyword.SoulbondAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.TargetController; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ImperiousMindbreaker extends CardImpl { + + public ImperiousMindbreaker(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{U}{U}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.WIZARD); + this.power = new MageInt(1); + this.toughness = new MageInt(4); + + // Soulbond + this.addAbility(new SoulbondAbility()); + + // As long as Imperious Mindbreaker is paired with another creature, each of those creatures has "Whenever this creature attacks, each opponent mills cards equal to its toughness." + this.addAbility(new SimpleStaticAbility(new GainAbilityPairedEffect( + new AttacksTriggeredAbility(new MillCardsEachPlayerEffect( + SourcePermanentToughnessValue.getInstance(), TargetController.OPPONENT + ), false, "Whenever this creature attacks, each opponent mills cards equal to its toughness."), + "As long as {this} is paired with another creature, each of those creatures has " + + "\"Whenever this creature attacks, each opponent mills cards equal to its toughness.\"" + ))); + } + + private ImperiousMindbreaker(final ImperiousMindbreaker card) { + super(card); + } + + @Override + public ImperiousMindbreaker copy() { + return new ImperiousMindbreaker(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CrimsonVowCommander.java b/Mage.Sets/src/mage/sets/CrimsonVowCommander.java index b34248f3a6..cf2eb189af 100644 --- a/Mage.Sets/src/mage/sets/CrimsonVowCommander.java +++ b/Mage.Sets/src/mage/sets/CrimsonVowCommander.java @@ -74,6 +74,7 @@ public final class CrimsonVowCommander extends ExpansionSet { cards.add(new SetCardInfo("Hanged Executioner", 89, Rarity.RARE, mage.cards.h.HangedExecutioner.class)); cards.add(new SetCardInfo("Haunted Library", 6, Rarity.RARE, mage.cards.h.HauntedLibrary.class)); cards.add(new SetCardInfo("Hollowhenge Overlord", 36, Rarity.RARE, mage.cards.h.HollowhengeOverlord.class)); + cards.add(new SetCardInfo("Imperious Mindbreaker", 33, Rarity.RARE, mage.cards.i.ImperiousMindbreaker.class)); cards.add(new SetCardInfo("Imposing Grandeur", 24, Rarity.RARE, mage.cards.i.ImposingGrandeur.class)); cards.add(new SetCardInfo("Imprisoned in the Moon", 106, Rarity.RARE, mage.cards.i.ImprisonedInTheMoon.class)); cards.add(new SetCardInfo("Indulgent Aristocrat", 130, Rarity.UNCOMMON, mage.cards.i.IndulgentAristocrat.class));