diff --git a/Mage.Sets/src/mage/cards/p/PestSummoning.java b/Mage.Sets/src/mage/cards/p/PestSummoning.java new file mode 100644 index 0000000000..361ee04dd4 --- /dev/null +++ b/Mage.Sets/src/mage/cards/p/PestSummoning.java @@ -0,0 +1,34 @@ +package mage.cards.p; + +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.game.permanent.token.PestToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class PestSummoning extends CardImpl { + + public PestSummoning(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{1}{B/G}{B/G}"); + + this.subtype.add(SubType.LESSON); + + // Create two 1/1 black and green Pest creature tokens with "When this creature dies, you gain 1 life." + this.getSpellAbility().addEffect(new CreateTokenEffect(new PestToken(), 2)); + } + + private PestSummoning(final PestSummoning card) { + super(card); + } + + @Override + public PestSummoning copy() { + return new PestSummoning(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java index b1e3495acf..b55f130d2a 100644 --- a/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java +++ b/Mage.Sets/src/mage/sets/StrixhavenSchoolOfMages.java @@ -31,6 +31,7 @@ public final class StrixhavenSchoolOfMages extends ExpansionSet { cards.add(new SetCardInfo("Eager First-Year", 16, Rarity.COMMON, mage.cards.e.EagerFirstYear.class)); cards.add(new SetCardInfo("Kasmina, Enigma Sage", 196, Rarity.MYTHIC, mage.cards.k.KasminaEnigmaSage.class)); cards.add(new SetCardInfo("Lorehold Command", 199, Rarity.RARE, mage.cards.l.LoreholdCommand.class)); + cards.add(new SetCardInfo("Pest Summoning", 211, Rarity.COMMON, mage.cards.p.PestSummoning.class)); cards.add(new SetCardInfo("Pop Quiz", 49, Rarity.COMMON, mage.cards.p.PopQuiz.class)); cards.add(new SetCardInfo("Prismari Command", 214, Rarity.RARE, mage.cards.p.PrismariCommand.class)); cards.add(new SetCardInfo("Professor Onyx", 83, Rarity.MYTHIC, mage.cards.p.ProfessorOnyx.class)); diff --git a/Mage/src/main/java/mage/game/permanent/token/PestToken2.java b/Mage/src/main/java/mage/game/permanent/token/PestToken2.java new file mode 100644 index 0000000000..ba43457975 --- /dev/null +++ b/Mage/src/main/java/mage/game/permanent/token/PestToken2.java @@ -0,0 +1,33 @@ +package mage.game.permanent.token; + +import mage.MageInt; +import mage.abilities.common.DiesSourceTriggeredAbility; +import mage.abilities.effects.common.GainLifeEffect; +import mage.constants.CardType; +import mage.constants.SubType; + +/** + * @author TheElk801 + */ +public final class PestToken2 extends TokenImpl { + + public PestToken2() { + super("Pest", "1/1 black and green Pest creature token with \"When this creature dies, you gain 1 life.\""); + cardType.add(CardType.CREATURE); + color.setBlack(true); + color.setGreen(true); + subtype.add(SubType.PEST); + power = new MageInt(1); + toughness = new MageInt(1); + + this.addAbility(new DiesSourceTriggeredAbility(new GainLifeEffect(1))); + } + + private PestToken2(final PestToken2 token) { + super(token); + } + + public PestToken2 copy() { + return new PestToken2(this); + } +}