diff --git a/Mage.Sets/src/mage/cards/i/IronCrawCrusher.java b/Mage.Sets/src/mage/cards/i/IronCrawCrusher.java new file mode 100644 index 00000000000..6311cae5461 --- /dev/null +++ b/Mage.Sets/src/mage/cards/i/IronCrawCrusher.java @@ -0,0 +1,53 @@ +package mage.cards.i; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.dynamicvalue.DynamicValue; +import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount; +import mage.abilities.dynamicvalue.common.StaticValue; +import mage.abilities.effects.common.continuous.BoostTargetEffect; +import mage.abilities.keyword.PrototypeAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.target.common.TargetAttackingCreature; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class IronCrawCrusher extends CardImpl { + + private static final DynamicValue xValue = new SourcePermanentPowerCount(false); + + public IronCrawCrusher(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT, CardType.CREATURE}, "{7}"); + + this.subtype.add(SubType.WURM); + this.power = new MageInt(4); + this.toughness = new MageInt(6); + + // Prototype {2}{G}{G} -- 2/5 + this.addAbility(new PrototypeAbility(this, "{2}{G}{G}", 2, 5)); + + // Whenever Iron-Craw Crusher attacks, target attacking creature gets +X/+0 until end of turn, where X is Iron-Craw Crusher's power. + Ability ability = new AttacksTriggeredAbility( + new BoostTargetEffect(xValue, StaticValue.get(0), Duration.EndOfTurn) + ); + ability.addTarget(new TargetAttackingCreature()); + this.addAbility(ability); + } + + private IronCrawCrusher(final IronCrawCrusher card) { + super(card); + } + + @Override + public IronCrawCrusher copy() { + return new IronCrawCrusher(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index 4bd3e10055b..fc0adcbc430 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -142,6 +142,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Hurkyl, Master Wizard", 51, Rarity.RARE, mage.cards.h.HurkylMasterWizard.class)); cards.add(new SetCardInfo("In the Trenches", 8, Rarity.MYTHIC, mage.cards.i.InTheTrenches.class)); cards.add(new SetCardInfo("Involuntary Cooldown", 53, Rarity.UNCOMMON, mage.cards.i.InvoluntaryCooldown.class)); + cards.add(new SetCardInfo("Iron-Craw Crusher", 200, Rarity.UNCOMMON, mage.cards.i.IronCrawCrusher.class)); cards.add(new SetCardInfo("Island", 270, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Junkyard Genius", 214, Rarity.UNCOMMON, mage.cards.j.JunkyardGenius.class)); cards.add(new SetCardInfo("Kayla's Command", 9, Rarity.RARE, mage.cards.k.KaylasCommand.class));