From 335b846720f09f18e9ea9912c70aa497710fcb69 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Fri, 4 Nov 2022 08:57:15 -0400 Subject: [PATCH] [BRO] Implement Veteran's Powerblade --- .../src/mage/cards/v/VeteransPowerblade.java | 48 +++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 49 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/v/VeteransPowerblade.java diff --git a/Mage.Sets/src/mage/cards/v/VeteransPowerblade.java b/Mage.Sets/src/mage/cards/v/VeteransPowerblade.java new file mode 100644 index 0000000000..311ba73e73 --- /dev/null +++ b/Mage.Sets/src/mage/cards/v/VeteransPowerblade.java @@ -0,0 +1,48 @@ +package mage.cards.v; + +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.costs.mana.ManaCostsImpl; +import mage.abilities.effects.common.continuous.BoostEquippedEffect; +import mage.abilities.keyword.EquipAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Outcome; +import mage.constants.SubType; +import mage.filter.FilterPermanent; +import mage.filter.common.FilterControlledCreaturePermanent; +import mage.target.TargetPermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class VeteransPowerblade extends CardImpl { + + private static final FilterPermanent filter = new FilterControlledCreaturePermanent(SubType.SOLDIER, "Soldier"); + + public VeteransPowerblade(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}"); + + this.subtype.add(SubType.EQUIPMENT); + + // Equipped creature gets +2/+0. + this.addAbility(new SimpleStaticAbility(new BoostEquippedEffect(2, 0))); + + // Equip Soldier {W} + this.addAbility(new EquipAbility(Outcome.BoostCreature, new ManaCostsImpl<>("{W}"), new TargetPermanent(filter))); + + // Equip {2} + this.addAbility(new EquipAbility(2)); + } + + private VeteransPowerblade(final VeteransPowerblade card) { + super(card); + } + + @Override + public VeteransPowerblade copy() { + return new VeteransPowerblade(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index 3c3a13d9e6..1656ff1f0b 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -182,6 +182,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Urza, Planeswalker", "238b", Rarity.MYTHIC, mage.cards.u.UrzaPlaneswalker.class)); cards.add(new SetCardInfo("Urza, Powerstone Prodigy", 69, Rarity.UNCOMMON, mage.cards.u.UrzaPowerstoneProdigy.class)); cards.add(new SetCardInfo("Urza, Prince of Kroog", 226, Rarity.RARE, mage.cards.u.UrzaPrinceOfKroog.class)); + cards.add(new SetCardInfo("Veteran's Powerblade", 41, Rarity.COMMON, mage.cards.v.VeteransPowerblade.class)); cards.add(new SetCardInfo("Yotian Dissident", 227, Rarity.UNCOMMON, mage.cards.y.YotianDissident.class)); cards.add(new SetCardInfo("Yotian Medic", 33, Rarity.COMMON, mage.cards.y.YotianMedic.class)); cards.add(new SetCardInfo("Yotian Tactician", 228, Rarity.UNCOMMON, mage.cards.y.YotianTactician.class));