1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-03 01:08:59 -09:00

[DMU] Implement Yavimaya Steelcrusher (dummy enlist ability)

This commit is contained in:
Evan Kranzler 2022-08-22 10:24:37 -04:00
parent c7161ed3a8
commit 867c2569c8
4 changed files with 86 additions and 0 deletions
Mage.Sets/src/mage
Mage/src/main/java/mage/abilities/keyword
Utils

View file

@ -0,0 +1,49 @@
package mage.cards.y;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.SimpleActivatedAbility;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.effects.common.DestroyTargetEffect;
import mage.abilities.keyword.EnlistAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.target.common.TargetArtifactPermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class YavimayaSteelcrusher extends CardImpl {
public YavimayaSteelcrusher(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{R}");
this.subtype.add(SubType.APE);
this.subtype.add(SubType.WARRIOR);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Enlist
this.addAbility(new EnlistAbility());
// {1}, Sacrifice Yavimaya Steelcrusher: Destroy target artifact.
Ability ability = new SimpleActivatedAbility(new DestroyTargetEffect(), new GenericManaCost(1));
ability.addCost(new SacrificeSourceCost());
ability.addTarget(new TargetArtifactPermanent());
this.addAbility(ability);
}
private YavimayaSteelcrusher(final YavimayaSteelcrusher card) {
super(card);
}
@Override
public YavimayaSteelcrusher copy() {
return new YavimayaSteelcrusher(this);
}
}

View file

@ -4,11 +4,16 @@ import mage.cards.ExpansionSet;
import mage.constants.Rarity;
import mage.constants.SetType;
import java.util.Arrays;
import java.util.List;
/**
* @author TheElk801
*/
public final class DominariaUnited extends ExpansionSet {
private static final List<String> unfinished = Arrays.asList("Guardian of New Benalia", "Keldon Flamesage", "Yavimaya Steelcrusher");
private static final DominariaUnited instance = new DominariaUnited();
public static DominariaUnited getInstance() {
@ -90,6 +95,7 @@ public final class DominariaUnited extends ExpansionSet {
cards.add(new SetCardInfo("Vineshaper Prodigy", 187, Rarity.COMMON, mage.cards.v.VineshaperProdigy.class));
cards.add(new SetCardInfo("Yavimaya Coast", 261, Rarity.RARE, mage.cards.y.YavimayaCoast.class));
cards.add(new SetCardInfo("Yavimaya Iconoclast", 190, Rarity.UNCOMMON, mage.cards.y.YavimayaIconoclast.class));
cards.add(new SetCardInfo("Yavimaya Steelcrusher", 152, Rarity.COMMON, mage.cards.y.YavimayaSteelcrusher.class));
}
// @Override

View file

@ -0,0 +1,30 @@
package mage.abilities.keyword;
import mage.abilities.StaticAbility;
import mage.constants.Zone;
/**
* @author TheElk801
* TODO: Implement this
*/
public class EnlistAbility extends StaticAbility {
public EnlistAbility() {
super(Zone.BATTLEFIELD, null);
}
private EnlistAbility(final EnlistAbility ability) {
super(ability);
}
@Override
public EnlistAbility copy() {
return new EnlistAbility(this);
}
@Override
public String getRule() {
return "Enlist <i>(As this creature attacks, you may tap a nonattacking creature you control " +
"without summoning sickness. When you do, add its power to this creatures until end of turn.)</i>";
}
}

View file

@ -35,6 +35,7 @@ Echo|manaString|
Embalm|cost, card|
Enchant|type|
Encore|cost|
Enlist|new|
Entwine|manaString|
Eternalize|cost, card|
Evoke|manaString|