From 24cfed8a0a884a24416a212fc192022d9f4cb984 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 29 Jun 2021 08:53:01 -0400 Subject: [PATCH] [AFR] Implemented Trelassara Moon Dancer --- .../mage/cards/t/TrelasarraMoonDancer.java | 47 +++++++++++++++++++ .../sets/AdventuresInTheForgottenRealms.java | 1 + .../GainLifeControllerTriggeredAbility.java | 5 +- Utils/mtg-cards-data.txt | 1 + 4 files changed, 53 insertions(+), 1 deletion(-) create mode 100644 Mage.Sets/src/mage/cards/t/TrelasarraMoonDancer.java diff --git a/Mage.Sets/src/mage/cards/t/TrelasarraMoonDancer.java b/Mage.Sets/src/mage/cards/t/TrelasarraMoonDancer.java new file mode 100644 index 00000000000..46a64b9f39f --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TrelasarraMoonDancer.java @@ -0,0 +1,47 @@ +package mage.cards.t; + +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.GainLifeControllerTriggeredAbility; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.abilities.effects.keyword.ScryEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.counters.CounterType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class TrelasarraMoonDancer extends CardImpl { + + public TrelasarraMoonDancer(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}{W}"); + + this.addSuperType(SuperType.LEGENDARY); + this.subtype.add(SubType.ELF); + this.subtype.add(SubType.CLERIC); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // Whenever you gain life, put a +1/+1 counter on Trelasarra Moon Dancer and scry 1. + Ability ability = new GainLifeControllerTriggeredAbility( + new AddCountersSourceEffect(CounterType.P1P1.createInstance()) + ); + ability.addEffect(new ScryEffect(1).concatBy("and")); + this.addAbility(ability); + } + + private TrelasarraMoonDancer(final TrelasarraMoonDancer card) { + super(card); + } + + @Override + public TrelasarraMoonDancer copy() { + return new TrelasarraMoonDancer(this); + } +} diff --git a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java index c81957e615b..25a603475ce 100644 --- a/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java +++ b/Mage.Sets/src/mage/sets/AdventuresInTheForgottenRealms.java @@ -47,6 +47,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet { cards.add(new SetCardInfo("Swamp", 270, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Tasha's Hideous Laughter", 78, Rarity.RARE, mage.cards.t.TashasHideousLaughter.class)); cards.add(new SetCardInfo("Tiamat", 235, Rarity.MYTHIC, mage.cards.t.Tiamat.class)); + cards.add(new SetCardInfo("Trelasarra Moon Dancer", 236, Rarity.UNCOMMON, mage.cards.t.TrelasarraMoonDancer.class)); cards.add(new SetCardInfo("Vorpal Sword", 124, Rarity.RARE, mage.cards.v.VorpalSword.class)); } } diff --git a/Mage/src/main/java/mage/abilities/common/GainLifeControllerTriggeredAbility.java b/Mage/src/main/java/mage/abilities/common/GainLifeControllerTriggeredAbility.java index f78e0f9d3e1..803b3c2b111 100644 --- a/Mage/src/main/java/mage/abilities/common/GainLifeControllerTriggeredAbility.java +++ b/Mage/src/main/java/mage/abilities/common/GainLifeControllerTriggeredAbility.java @@ -1,4 +1,3 @@ - package mage.abilities.common; import mage.abilities.TriggeredAbilityImpl; @@ -15,6 +14,10 @@ public class GainLifeControllerTriggeredAbility extends TriggeredAbilityImpl { private final boolean setTargetPointer; + public GainLifeControllerTriggeredAbility(Effect effect) { + this(effect, false); + } + public GainLifeControllerTriggeredAbility(Effect effect, boolean optional) { this(effect, optional, false); } diff --git a/Utils/mtg-cards-data.txt b/Utils/mtg-cards-data.txt index 07bf99fc652..d92563ef42a 100644 --- a/Utils/mtg-cards-data.txt +++ b/Utils/mtg-cards-data.txt @@ -41336,6 +41336,7 @@ Prosperous Innkeeper|Adventures in the Forgotten Realms|200|U|{1}{G}|Creature - Bruenor Battlehammer|Adventures in the Forgotten Realms|219|U|{2}{R}{W}|Legendary Creature - Dwarf Warrior|5|3|Each creature you control gets +2/+0 for each Equipment attached to it.$You may pay {0} rather than pay the equip cost of the first equip ability you activate each turn.| Drizzt Do'Urden|Adventures in the Forgotten Realms|220|R|{3}{G}{W}|Legendary Creature - Elf Ranger|3|3|Double strike$When Drizzt Do'Urden enters the battlefield, create Guenhwyvar, a legendary 4/1 green Cat creature token with trample.$Whenever a creature dies, if it had power greater than Drizzt's power, put a number of +1/+1 counters on Drizzt equal to the difference.| Tiamat|Adventures in the Forgotten Realms|235|M|{2}{W}{U}{B}{R}{G}|Legendary Creature - Dragon God|7|7|Flying$When Tiamat enters the battlefield, if you cast it, search your library for up to five Dragon cards not named Tiamat that each have different names, reveal them, put them into your hand, then shuffle.| +Trelasarra Moon Dancer|Adventures in the Forgotten Realms|236|U|{G}{W}|Legendary Creature - Elf Cleric|2|2|Whenever you gain life, put a +1/+1 counter on Trelasarra Moon Dancer and scry 1.| Hive of the Eye Tyrant|Adventures in the Forgotten Realms|258|R||Land|||If you control two or more other lands, Hive of the Eye Tyrant enters the battlefield tapped.${T}: Add {B}.${3}{B}: Until end of turn, Hive of the Eye Tyrant becomes a 3/3 black Beholder creature with menace and "Whenever this creature attacks, exile target card from defending player's graveyard." It's still a land.| Plains|Adventures in the Forgotten Realms|262|C||Basic Land - Plains|||({T}: Add {W}.)| Island|Adventures in the Forgotten Realms|266|C||Basic Land - Island|||({T}: Add {U}.)|