[NCC] Implemented Scepter of Celebration

This commit is contained in:
Evan Kranzler 2022-04-25 09:03:40 -04:00
parent d684500748
commit 46c1718b57
2 changed files with 56 additions and 0 deletions

View file

@ -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);
}
}

View file

@ -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));