From 57788e689f6832f5dcb5a6762a3a8235cfa89299 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Thu, 2 Jan 2020 13:37:00 -0500 Subject: [PATCH] Implemented Setessan Petitioner --- .../src/mage/cards/s/SetessanPetitioner.java | 41 +++++++++++++++++++ .../src/mage/sets/TherosBeyondDeath.java | 1 + 2 files changed, 42 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/SetessanPetitioner.java diff --git a/Mage.Sets/src/mage/cards/s/SetessanPetitioner.java b/Mage.Sets/src/mage/cards/s/SetessanPetitioner.java new file mode 100644 index 00000000000..883ab8cbbd4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/SetessanPetitioner.java @@ -0,0 +1,41 @@ +package mage.cards.s; + +import mage.MageInt; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.dynamicvalue.common.DevotionCount; +import mage.abilities.effects.common.GainLifeEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class SetessanPetitioner extends CardImpl { + + public SetessanPetitioner(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}{G}"); + + this.subtype.add(SubType.HUMAN); + this.subtype.add(SubType.DRUID); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // When Setessan Petitioner enters the battlefield, you gain life equal to your devotion to green. + this.addAbility(new EntersBattlefieldTriggeredAbility( + new GainLifeEffect(DevotionCount.G).setText("you gain life equal to your devotion to green") + ).addHint(DevotionCount.G.getHint())); + } + + private SetessanPetitioner(final SetessanPetitioner card) { + super(card); + } + + @Override + public SetessanPetitioner copy() { + return new SetessanPetitioner(this); + } +} diff --git a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java index c57cbe57ac6..14b635f50bd 100644 --- a/Mage.Sets/src/mage/sets/TherosBeyondDeath.java +++ b/Mage.Sets/src/mage/sets/TherosBeyondDeath.java @@ -82,6 +82,7 @@ public final class TherosBeyondDeath extends ExpansionSet { cards.add(new SetCardInfo("Revoke Existence", 34, Rarity.COMMON, mage.cards.r.RevokeExistence.class)); cards.add(new SetCardInfo("Serpent of Yawning Depths", 291, Rarity.RARE, mage.cards.s.SerpentOfYawningDepths.class)); cards.add(new SetCardInfo("Setessan Champion", 198, Rarity.RARE, mage.cards.s.SetessanChampion.class)); + cards.add(new SetCardInfo("Setessan Petitioner", 199, Rarity.UNCOMMON, mage.cards.s.SetessanPetitioner.class)); cards.add(new SetCardInfo("Sphinx Mindbreaker", 290, Rarity.RARE, mage.cards.s.SphinxMindbreaker.class)); cards.add(new SetCardInfo("Staggering Insight", 228, Rarity.UNCOMMON, mage.cards.s.StaggeringInsight.class)); cards.add(new SetCardInfo("Swamp", 252, Rarity.LAND, mage.cards.basiclands.Swamp.class, FULL_ART_BFZ_VARIOUS));