Skip to content

Commit

Permalink
[J25] Implement Starnheim Memento
Browse files Browse the repository at this point in the history
  • Loading branch information
theelk801 committed Oct 29, 2024
1 parent 7da7726 commit 9f52945
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 0 deletions.
50 changes: 50 additions & 0 deletions Mage.Sets/src/mage/cards/s/StarnheimMemento.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
package mage.cards.s;

import mage.abilities.Ability;
import mage.abilities.common.ActivateAsSorceryActivatedAbility;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.continuous.BoostTargetEffect;
import mage.abilities.effects.common.continuous.GainAbilityTargetEffect;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.mana.WhiteManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.common.TargetCreaturePermanent;

import java.util.UUID;

/**
* @author TheElk801
*/
public final class StarnheimMemento extends CardImpl {

public StarnheimMemento(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");

// {T}: Add {W}.
this.addAbility(new WhiteManaAbility());

// {1}{W}, {T}: Target creature gets +1/+1 and gains flying until end of turn. Activate only as a sorcery.
Ability ability = new ActivateAsSorceryActivatedAbility(
new BoostTargetEffect(1, 1)
.setText("target creature gets +1/+1"),
new ManaCostsImpl<>("{1}{W}")
);
ability.addCost(new TapSourceCost());
ability.addEffect(new GainAbilityTargetEffect(FlyingAbility.getInstance())
.setText("and gains flying until end of turn"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}

private StarnheimMemento(final StarnheimMemento card) {
super(card);
}

@Override
public StarnheimMemento copy() {
return new StarnheimMemento(this);
}
}
1 change: 1 addition & 0 deletions Mage.Sets/src/mage/sets/FoundationsJumpstart.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ private FoundationsJumpstart() {
cards.add(new SetCardInfo("Saurian Symbiote", 23, Rarity.COMMON, mage.cards.s.SaurianSymbiote.class));
cards.add(new SetCardInfo("Shardless Outlander", 28, Rarity.COMMON, mage.cards.s.ShardlessOutlander.class));
cards.add(new SetCardInfo("Shroofus Sproutsire", 54, Rarity.RARE, mage.cards.s.ShroofusSproutsire.class));
cards.add(new SetCardInfo("Starnheim Memento", 29, Rarity.UNCOMMON, mage.cards.s.StarnheimMemento.class));
cards.add(new SetCardInfo("Vilis, Broker of Blood", 70, Rarity.RARE, mage.cards.v.VilisBrokerOfBlood.class));
}
}

0 comments on commit 9f52945

Please sign in to comment.