forked from External/mage
[DFT] Implement Cursecloth Wrappings (#13386)
This commit is contained in:
parent
6663974812
commit
532490553d
2 changed files with 95 additions and 0 deletions
90
Mage.Sets/src/mage/cards/c/CurseclothWrappings.java
Normal file
90
Mage.Sets/src/mage/cards/c/CurseclothWrappings.java
Normal file
|
|
@ -0,0 +1,90 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.effects.ContinuousEffectImpl;
|
||||
import mage.abilities.effects.common.continuous.BoostControlledEffect;
|
||||
import mage.abilities.keyword.EmbalmAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.Layer;
|
||||
import mage.constants.Outcome;
|
||||
import mage.constants.SubLayer;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterCreatureCard;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
import mage.game.Game;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Jmlundeen
|
||||
*/
|
||||
public final class CurseclothWrappings extends CardImpl {
|
||||
public static final FilterCreaturePermanent filter = new FilterCreaturePermanent("Zombies you control");
|
||||
|
||||
static {
|
||||
filter.add(SubType.ZOMBIE.getPredicate());
|
||||
}
|
||||
public CurseclothWrappings(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}{B}{B}");
|
||||
|
||||
|
||||
// Zombies you control get +1/+1.
|
||||
this.addAbility(new SimpleStaticAbility(new BoostControlledEffect(1, 1, Duration.WhileOnBattlefield, filter)));
|
||||
// {T}: Target creature card in your graveyard gains embalm until end of turn. The embalm cost is equal to its mana cost.
|
||||
Ability ability = new SimpleActivatedAbility(
|
||||
new CurseClothWrappingsEffect(),
|
||||
new TapSourceCost()
|
||||
);
|
||||
ability.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card in your graveyard")));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private CurseclothWrappings(final CurseclothWrappings card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CurseclothWrappings copy() {
|
||||
return new CurseclothWrappings(this);
|
||||
}
|
||||
}
|
||||
|
||||
class CurseClothWrappingsEffect extends ContinuousEffectImpl {
|
||||
public CurseClothWrappingsEffect() {
|
||||
super(Duration.EndOfTurn, Layer.AbilityAddingRemovingEffects_6, SubLayer.NA, Outcome.AddAbility);
|
||||
this.staticText = "Target creature card in your graveyard gains embalm until end of turn. " +
|
||||
"The embalm cost is equal to its mana cost. (Exile that card and pay its embalm cost: " +
|
||||
"Create a token that's a copy of it, except it's a white Zombie in addition to its other types " +
|
||||
"and has no mana cost. Embalm only as a sorcery.)";
|
||||
}
|
||||
|
||||
public CurseClothWrappingsEffect(final CurseClothWrappingsEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CurseClothWrappingsEffect copy() {
|
||||
return new CurseClothWrappingsEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Card card = game.getCard(getTargetPointer().getFirst(game, source));
|
||||
if (card != null) {
|
||||
EmbalmAbility embalmAbility = new EmbalmAbility(card.getManaCost(), card);
|
||||
game.getState().addOtherAbility(card, embalmAbility);
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -78,6 +78,11 @@ public final class Aetherdrift extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Country Roads", 253, Rarity.UNCOMMON, mage.cards.c.CountryRoads.class));
|
||||
cards.add(new SetCardInfo("Crash and Burn", 119, Rarity.COMMON, mage.cards.c.CrashAndBurn.class));
|
||||
cards.add(new SetCardInfo("Cryptcaller Chariot", 80, Rarity.RARE, mage.cards.c.CryptcallerChariot.class));
|
||||
cards.add(new SetCardInfo("Cursecloth Wrappings", 81, Rarity.RARE, mage.cards.c.CurseclothWrappings.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Cursecloth Wrappings", 383, Rarity.RARE, mage.cards.c.CurseclothWrappings.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Cursecloth Wrappings", 400, Rarity.MYTHIC, mage.cards.c.CurseclothWrappings.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Cursecloth Wrappings", 410, Rarity.MYTHIC, mage.cards.c.CurseclothWrappings.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Cursecloth Wrappings", 447, Rarity.RARE, mage.cards.c.CurseclothWrappings.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Daretti, Rocketeer Engineer", 120, Rarity.RARE, mage.cards.d.DarettiRocketeerEngineer.class));
|
||||
cards.add(new SetCardInfo("Daring Mechanic", 11, Rarity.COMMON, mage.cards.d.DaringMechanic.class));
|
||||
cards.add(new SetCardInfo("Deathless Pilot", 82, Rarity.COMMON, mage.cards.d.DeathlessPilot.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue