From a17b8b31b39929b55d3466d1e08c40fc936b056f Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Sat, 5 Nov 2022 10:46:53 -0400 Subject: [PATCH] [BRO] Implement Thran Vigil --- Mage.Sets/src/mage/cards/t/ThranVigil.java | 45 +++++++++++++++++++++ Mage.Sets/src/mage/sets/TheBrothersWar.java | 1 + 2 files changed, 46 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/t/ThranVigil.java diff --git a/Mage.Sets/src/mage/cards/t/ThranVigil.java b/Mage.Sets/src/mage/cards/t/ThranVigil.java new file mode 100644 index 0000000000..8d4a2cad49 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/ThranVigil.java @@ -0,0 +1,45 @@ +package mage.cards.t; + +import mage.abilities.Ability; +import mage.abilities.common.CardsLeaveGraveyardTriggeredAbility; +import mage.abilities.condition.common.MyTurnCondition; +import mage.abilities.decorator.ConditionalInterveningIfTriggeredAbility; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.counters.CounterType; +import mage.filter.StaticFilters; +import mage.target.common.TargetControlledCreaturePermanent; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ThranVigil extends CardImpl { + + public ThranVigil(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{1}{B}"); + + // Whenever one or more artifact and/or creature cards leave your graveyard during your turn, put a +1/+1 counter on target creature you control. + Ability ability = new ConditionalInterveningIfTriggeredAbility( + new CardsLeaveGraveyardTriggeredAbility( + new AddCountersTargetEffect(CounterType.P1P1.createInstance()), + StaticFilters.FILTER_CARD_ARTIFACT_OR_CREATURE + ), MyTurnCondition.instance, "Whenever one or more artifact and/or creature cards " + + "leave your graveyard during your turn, put a +1/+1 counter on target creature you control." + ); + ability.addTarget(new TargetControlledCreaturePermanent()); + this.addAbility(ability); + } + + private ThranVigil(final ThranVigil card) { + super(card); + } + + @Override + public ThranVigil copy() { + return new ThranVigil(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TheBrothersWar.java b/Mage.Sets/src/mage/sets/TheBrothersWar.java index bfd90dda91..ed2a06dad1 100644 --- a/Mage.Sets/src/mage/sets/TheBrothersWar.java +++ b/Mage.Sets/src/mage/sets/TheBrothersWar.java @@ -223,6 +223,7 @@ public final class TheBrothersWar extends ExpansionSet { cards.add(new SetCardInfo("Thopter Architect", 29, Rarity.UNCOMMON, mage.cards.t.ThopterArchitect.class)); cards.add(new SetCardInfo("Thopter Mechanic", 68, Rarity.UNCOMMON, mage.cards.t.ThopterMechanic.class)); cards.add(new SetCardInfo("Thran Spider", 254, Rarity.RARE, mage.cards.t.ThranSpider.class)); + cards.add(new SetCardInfo("Thran Vigil", 114, Rarity.UNCOMMON, mage.cards.t.ThranVigil.class)); cards.add(new SetCardInfo("Thraxodemon", 115, Rarity.COMMON, mage.cards.t.Thraxodemon.class)); cards.add(new SetCardInfo("Titania, Gaea Incarnate", "256b", Rarity.MYTHIC, mage.cards.t.TitaniaGaeaIncarnate.class)); cards.add(new SetCardInfo("Titania, Voice of Gaea", 193, Rarity.MYTHIC, mage.cards.t.TitaniaVoiceOfGaea.class));