From b34102af2cfb142bcd63924795fc617a8d7e6be0 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Tue, 12 Apr 2022 22:45:53 -0400 Subject: [PATCH] [SNC] Implemented Darling of the Masses --- .../src/mage/cards/d/DarlingOfTheMasses.java | 50 +++++++++++++++++++ .../src/mage/sets/StreetsOfNewCapenna.java | 1 + 2 files changed, 51 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/d/DarlingOfTheMasses.java diff --git a/Mage.Sets/src/mage/cards/d/DarlingOfTheMasses.java b/Mage.Sets/src/mage/cards/d/DarlingOfTheMasses.java new file mode 100644 index 0000000000..ab3e80ddca --- /dev/null +++ b/Mage.Sets/src/mage/cards/d/DarlingOfTheMasses.java @@ -0,0 +1,50 @@ +package mage.cards.d; + +import mage.MageInt; +import mage.abilities.common.AttacksTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.BoostControlledEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.Duration; +import mage.constants.SubType; +import mage.filter.common.FilterCreaturePermanent; +import mage.game.permanent.token.CitizenGreenWhiteToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class DarlingOfTheMasses extends CardImpl { + + private static final FilterCreaturePermanent filter = new FilterCreaturePermanent(SubType.CITIZEN, "Citizens"); + + public DarlingOfTheMasses(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{G}{W}"); + + this.subtype.add(SubType.ELF); + this.subtype.add(SubType.CITIZEN); + this.power = new MageInt(2); + this.toughness = new MageInt(4); + + // Other Citizens you control get +1/+0. + this.addAbility(new SimpleStaticAbility(new BoostControlledEffect( + 1, 0, Duration.WhileOnBattlefield, filter, true + ))); + + // Whenever Darling of the Masses attacks, create a 1/1 green and white Citizen creature token. + this.addAbility(new AttacksTriggeredAbility(new CreateTokenEffect(new CitizenGreenWhiteToken()))); + } + + private DarlingOfTheMasses(final DarlingOfTheMasses card) { + super(card); + } + + @Override + public DarlingOfTheMasses copy() { + return new DarlingOfTheMasses(this); + } +} diff --git a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java index 8f468df00d..3bede67ef5 100644 --- a/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java +++ b/Mage.Sets/src/mage/sets/StreetsOfNewCapenna.java @@ -51,6 +51,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet { cards.add(new SetCardInfo("Courier's Briefcase", 142, Rarity.UNCOMMON, mage.cards.c.CouriersBriefcase.class)); cards.add(new SetCardInfo("Cut Your Losses", 38, Rarity.RARE, mage.cards.c.CutYourLosses.class)); cards.add(new SetCardInfo("Cut of the Profits", 72, Rarity.RARE, mage.cards.c.CutOfTheProfits.class)); + cards.add(new SetCardInfo("Darling of the Masses", 181, Rarity.UNCOMMON, mage.cards.d.DarlingOfTheMasses.class)); cards.add(new SetCardInfo("Depopulate", 10, Rarity.RARE, mage.cards.d.Depopulate.class)); cards.add(new SetCardInfo("Devilish Valet", 105, Rarity.RARE, mage.cards.d.DevilishValet.class)); cards.add(new SetCardInfo("Dig Up the Body", 76, Rarity.COMMON, mage.cards.d.DigUpTheBody.class));