[VOC] Implemented Imperious Mindbreaker

This commit is contained in:
Evan Kranzler 2021-11-13 09:50:01 -05:00
parent ac4d64a08f
commit a27308354a
2 changed files with 53 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));