From d61f7cfbaedc05e36764cf5cf74d2d8480043985 Mon Sep 17 00:00:00 2001 From: Michael Simons Date: Sat, 14 Apr 2018 00:12:03 -0400 Subject: [PATCH] Added Blackblade Reforged for Dominaria set --- .../src/mage/cards/b/BlackbladeReforged.java | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/b/BlackbladeReforged.java diff --git a/Mage.Sets/src/mage/cards/b/BlackbladeReforged.java b/Mage.Sets/src/mage/cards/b/BlackbladeReforged.java new file mode 100644 index 0000000000..35a6cfb703 --- /dev/null +++ b/Mage.Sets/src/mage/cards/b/BlackbladeReforged.java @@ -0,0 +1,55 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package mage.cards.b; + +import java.util.UUID; +import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; +import mage.abilities.common.SimpleStaticAbility; +import mage.filter.common.FilterControlledLandPermanent; +import mage.filter.common.FilterControlledPermanent; +import mage.abilities.effects.common.continuous.BoostEquippedEffect; +import mage.abilities.costs.mana.GenericManaCost; +import mage.abilities.keyword.EquipAbility; +import mage.abilities.keyword.EquipLegendaryAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.constants.SubType; +import mage.constants.Zone; + +/** + * + * @author Rystan + */ +public class BlackbladeReforged extends CardImpl { + + private static final FilterControlledPermanent filter = new FilterControlledLandPermanent(); + + public BlackbladeReforged(UUID ownerId, CardSetInfo setInfo) { + super(ownerId,setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); + this.subtype.add(SubType.EQUIPMENT); + + // Equipped creature gets +1/+1 for each land you control. + PermanentsOnBattlefieldCount count = new PermanentsOnBattlefieldCount(filter); + this.addAbility(new SimpleStaticAbility(Zone.BATTLEFIELD, new BoostEquippedEffect(count, count))); + + // Equip legendary creature (3) + this.addAbility(new EquipLegendaryAbility(Outcome.AddAbility, new GenericManaCost(3))); + + // Equip {7} + this.addAbility(new EquipAbility(Outcome.AddAbility, new GenericManaCost(7))); + } + + public BlackbladeReforged(final BlackbladeReforged card) { + super(card); + } + + @Override + public BlackbladeReforged copy() { + return new BlackbladeReforged(this); + } +}