From 9bf085f55fed78216083b70a3e209f278edf4ebd Mon Sep 17 00:00:00 2001 From: Daniel Bomar Date: Wed, 2 Nov 2022 14:16:50 -0500 Subject: [PATCH] [BRO] Implemented Union of the Third Path --- .../src/mage/cards/u/UnionOfTheThirdPath.java | 34 +++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 35 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/u/UnionOfTheThirdPath.java diff --git a/Mage.Sets/src/mage/cards/u/UnionOfTheThirdPath.java b/Mage.Sets/src/mage/cards/u/UnionOfTheThirdPath.java new file mode 100644 index 00000000000..bd944e32708 --- /dev/null +++ b/Mage.Sets/src/mage/cards/u/UnionOfTheThirdPath.java @@ -0,0 +1,34 @@ +package mage.cards.u; + +import java.util.UUID; + +import mage.abilities.dynamicvalue.common.CardsInControllerHandCount; +import mage.abilities.effects.common.DrawCardSourceControllerEffect; +import mage.abilities.effects.common.GainLifeEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; + +/** + * + * @author weirddan455 + */ +public final class UnionOfTheThirdPath extends CardImpl { + + public UnionOfTheThirdPath(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{2}{W}"); + + // Draw a card, then you gain life equal to the number of cards in your hand. + this.getSpellAbility().addEffect(new DrawCardSourceControllerEffect(1)); + this.getSpellAbility().addEffect(new GainLifeEffect(CardsInControllerHandCount.instance).concatBy(", then")); + } + + private UnionOfTheThirdPath(final UnionOfTheThirdPath card) { + super(card); + } + + @Override + public UnionOfTheThirdPath copy() { + return new UnionOfTheThirdPath(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index f8a7a34606e..4b40b6d3f90 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -127,6 +127,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Transmogrant's Crown", 125, Rarity.RARE, mage.cards.t.TransmograntsCrown.class)); cards.add(new SetCardInfo("Tyrant of Kher Ridges", 154, Rarity.RARE, mage.cards.t.TyrantOfKherRidges.class)); cards.add(new SetCardInfo("Underground River", 267, Rarity.RARE, mage.cards.u.UndergroundRiver.class)); + cards.add(new SetCardInfo("Union of the Third Path", 31, Rarity.COMMON, mage.cards.u.UnionOfTheThirdPath.class)); cards.add(new SetCardInfo("Urza's Command", 70, Rarity.RARE, mage.cards.u.UrzasCommand.class)); cards.add(new SetCardInfo("Urza's Rebuff", 71, Rarity.COMMON, mage.cards.u.UrzasRebuff.class)); cards.add(new SetCardInfo("Urza's Sylex", 40, Rarity.MYTHIC, mage.cards.u.UrzasSylex.class));