From a0375dfa7bce0d95b68404943c49c1a8efa314ef Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 20 Jun 2018 08:48:19 -0400 Subject: [PATCH] Implemented Ajani's Welcome --- Mage.Sets/src/mage/cards/a/AjanisWelcome.java | 35 +++++++++++++++++++ Mage.Sets/src/mage/sets/CoreSet2019.java | 1 + 2 files changed, 36 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/a/AjanisWelcome.java diff --git a/Mage.Sets/src/mage/cards/a/AjanisWelcome.java b/Mage.Sets/src/mage/cards/a/AjanisWelcome.java new file mode 100644 index 0000000000..2fdd09018c --- /dev/null +++ b/Mage.Sets/src/mage/cards/a/AjanisWelcome.java @@ -0,0 +1,35 @@ +package mage.cards.a; + +import java.util.UUID; +import mage.abilities.common.EntersBattlefieldControlledTriggeredAbility; +import mage.abilities.effects.common.GainLifeEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.filter.StaticFilters; + +/** + * + * @author TheElk801 + */ +public final class AjanisWelcome extends CardImpl { + + public AjanisWelcome(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{W}"); + + // Whenever a creature enters the battlefield under your control, you gain 1 life. + this.addAbility(new EntersBattlefieldControlledTriggeredAbility( + new GainLifeEffect(1), + StaticFilters.FILTER_PERMANENT_CREATURE + )); + } + + public AjanisWelcome(final AjanisWelcome card) { + super(card); + } + + @Override + public AjanisWelcome copy() { + return new AjanisWelcome(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CoreSet2019.java b/Mage.Sets/src/mage/sets/CoreSet2019.java index fa92df01f5..eef074e2b4 100644 --- a/Mage.Sets/src/mage/sets/CoreSet2019.java +++ b/Mage.Sets/src/mage/sets/CoreSet2019.java @@ -35,6 +35,7 @@ public final class CoreSet2019 extends ExpansionSet { cards.add(new SetCardInfo("Air Elemental", 308, Rarity.UNCOMMON, mage.cards.a.AirElemental.class)); cards.add(new SetCardInfo("Ajani's Last Stand", 4, Rarity.RARE, mage.cards.a.AjanisLastStand.class)); cards.add(new SetCardInfo("Ajani's Pridemate", 5, Rarity.UNCOMMON, mage.cards.a.AjanisPridemate.class)); + cards.add(new SetCardInfo("Ajani's Welcome", 6, Rarity.UNCOMMON, mage.cards.a.AjanisWelcome.class)); cards.add(new SetCardInfo("Ajani, Adversary of Tyrants", 3, Rarity.MYTHIC, mage.cards.a.AjaniAdversaryOfTyrants.class)); cards.add(new SetCardInfo("Ajani, Wise Counselor", 281, Rarity.MYTHIC, mage.cards.a.AjaniWiseCounselor.class)); cards.add(new SetCardInfo("Alpine Moon", 128, Rarity.RARE, mage.cards.a.AlpineMoon.class));