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

[AFR] Implemented Mimic

This commit is contained in:
Evan Kranzler 2021-07-01 08:33:37 -04:00
parent d8fdfead8e
commit b65fa21b42
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package mage.cards.m;
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.continuous.BecomesCreatureSourceEffect;
import mage.abilities.mana.AnyColorManaAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.game.permanent.token.custom.CreatureToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class Mimic extends CardImpl {
public Mimic(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}");
this.subtype.add(SubType.TREASURE);
// {T}, Sacrifice Mimic: Add one mana of any color.
Ability ability = new AnyColorManaAbility();
ability.addCost(new SacrificeSourceCost());
this.addAbility(ability);
// {2}: Mimic becomes a Shapeshifter artifact creature with base power and toughness 3/3 until end of turn.
this.addAbility(new SimpleActivatedAbility(new BecomesCreatureSourceEffect(
new CreatureToken(
3, 3, "Shapeshifter artifact creature with base power and toughness 3/3"
).withType(CardType.ARTIFACT).withSubType(SubType.SHAPESHIFTER), null, Duration.EndOfTurn
), new GenericManaCost(2)));
}
private Mimic(final Mimic card) {
super(card);
}
@Override
public Mimic copy() {
return new Mimic(this);
}
}

View file

@ -68,6 +68,7 @@ public final class AdventuresInTheForgottenRealms extends ExpansionSet {
cards.add(new SetCardInfo("Island", 266, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Lolth, Spider Queen", 112, Rarity.MYTHIC, mage.cards.l.LolthSpiderQueen.class));
cards.add(new SetCardInfo("Manticore", 113, Rarity.COMMON, mage.cards.m.Manticore.class));
cards.add(new SetCardInfo("Mimic", 249, Rarity.COMMON, mage.cards.m.Mimic.class));
cards.add(new SetCardInfo("Minion of the Mighty", 156, Rarity.RARE, mage.cards.m.MinionOfTheMighty.class));
cards.add(new SetCardInfo("Mountain", 274, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Nadaar, Selfless Paladin", 27, Rarity.RARE, mage.cards.n.NadaarSelflessPaladin.class));