From 46c1718b573e8d8aef0d5b156880c734f8917fb0 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Mon, 25 Apr 2022 09:03:40 -0400 Subject: [PATCH] [NCC] Implemented Scepter of Celebration --- .../mage/cards/s/ScepterOfCelebration.java | 55 +++++++++++++++++++ .../src/mage/sets/NewCapennaCommander.java | 1 + 2 files changed, 56 insertions(+) create mode 100644 Mage.Sets/src/mage/cards/s/ScepterOfCelebration.java diff --git a/Mage.Sets/src/mage/cards/s/ScepterOfCelebration.java b/Mage.Sets/src/mage/cards/s/ScepterOfCelebration.java new file mode 100644 index 00000000000..92ea6f43269 --- /dev/null +++ b/Mage.Sets/src/mage/cards/s/ScepterOfCelebration.java @@ -0,0 +1,55 @@ +package mage.cards.s; + +import mage.abilities.Ability; +import mage.abilities.common.DealsDamageToAPlayerAttachedTriggeredAbility; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.dynamicvalue.common.SavedDamageValue; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.continuous.BoostEnchantedEffect; +import mage.abilities.effects.common.continuous.GainAbilityAttachedEffect; +import mage.abilities.keyword.EquipAbility; +import mage.abilities.keyword.TrampleAbility; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.AttachmentType; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.game.permanent.token.CitizenGreenWhiteToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class ScepterOfCelebration extends CardImpl { + + public ScepterOfCelebration(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}{G}"); + + this.subtype.add(SubType.EQUIPMENT); + + // Equipped creature gets +2/+0 and has trample. + Ability ability = new SimpleStaticAbility(new BoostEnchantedEffect(2, 0)); + ability.addEffect(new GainAbilityAttachedEffect( + TrampleAbility.getInstance(), AttachmentType.EQUIPMENT + ).setText("and has trample")); + this.addAbility(ability); + + // Whenever equipped creature deals combat damage to a player, create that many 1/1 green and white Citizen creature tokens. + this.addAbility(new DealsDamageToAPlayerAttachedTriggeredAbility(new CreateTokenEffect( + new CitizenGreenWhiteToken(), SavedDamageValue.MANY + ), "equipped", false)); + + // Equip {3} + this.addAbility(new EquipAbility(3)); + } + + private ScepterOfCelebration(final ScepterOfCelebration card) { + super(card); + } + + @Override + public ScepterOfCelebration copy() { + return new ScepterOfCelebration(this); + } +} diff --git a/Mage.Sets/src/mage/sets/NewCapennaCommander.java b/Mage.Sets/src/mage/sets/NewCapennaCommander.java index c3d7e62501c..24474cde77b 100644 --- a/Mage.Sets/src/mage/sets/NewCapennaCommander.java +++ b/Mage.Sets/src/mage/sets/NewCapennaCommander.java @@ -225,6 +225,7 @@ public final class NewCapennaCommander extends ExpansionSet { cards.add(new SetCardInfo("Sandwurm Convergence", 308, Rarity.RARE, mage.cards.s.SandwurmConvergence.class)); cards.add(new SetCardInfo("Savage Lands", 424, Rarity.UNCOMMON, mage.cards.s.SavageLands.class)); cards.add(new SetCardInfo("Scavenging Ooze", 309, Rarity.RARE, mage.cards.s.ScavengingOoze.class)); + cards.add(new SetCardInfo("Scepter of Celebration", 64, Rarity.RARE, mage.cards.s.ScepterOfCelebration.class)); cards.add(new SetCardInfo("Scute Swarm", 310, Rarity.RARE, mage.cards.s.ScuteSwarm.class)); cards.add(new SetCardInfo("Seaside Citadel", 425, Rarity.UNCOMMON, mage.cards.s.SeasideCitadel.class)); cards.add(new SetCardInfo("Selvala, Explorer Returned", 350, Rarity.RARE, mage.cards.s.SelvalaExplorerReturned.class));