mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implemented Animating Faerie
This commit is contained in:
parent
bf1fc29f07
commit
034f577591
2 changed files with 67 additions and 0 deletions
66
Mage.Sets/src/mage/cards/a/AnimatingFaerie.java
Normal file
66
Mage.Sets/src/mage/cards/a/AnimatingFaerie.java
Normal file
|
@ -0,0 +1,66 @@
|
|||
package mage.cards.a;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.effects.common.continuous.AddCardTypeTargetEffect;
|
||||
import mage.abilities.effects.common.continuous.SetPowerToughnessTargetEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersTargetEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.AdventureCard;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledArtifactPermanent;
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.CardTypePredicate;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class AnimatingFaerie extends AdventureCard {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterControlledArtifactPermanent("noncreature artifact you control");
|
||||
|
||||
static {
|
||||
filter.add(Predicates.not(new CardTypePredicate(CardType.CREATURE)));
|
||||
}
|
||||
|
||||
public AnimatingFaerie(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, new CardType[]{CardType.SORCERY}, "{2}{U}", "Bring to Life", "{2}{U}");
|
||||
|
||||
this.subtype.add(SubType.FAERIE);
|
||||
this.power = new MageInt(2);
|
||||
this.toughness = new MageInt(2);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// Bring to Life
|
||||
// Target noncreature artifact you control becomes a 0/0 artifact creature. Put four +1/+1 counters on it.
|
||||
this.getAdventureSpellAbility().addEffect(new AddCardTypeTargetEffect(
|
||||
Duration.EndOfGame, CardType.ARTIFACT, CardType.CREATURE
|
||||
).setText("Target noncreature artifact you control becomes"));
|
||||
this.getAdventureSpellAbility().addEffect(new SetPowerToughnessTargetEffect(
|
||||
0, 0, Duration.EndOfGame
|
||||
).setText("a 0/0 artifact creature."));
|
||||
this.getAdventureSpellAbility().addEffect(new AddCountersTargetEffect(
|
||||
CounterType.P1P1.createInstance(4)
|
||||
).setText("Put four +1/+1 counters on it."));
|
||||
this.getAdventureSpellAbility().addTarget(new TargetPermanent(filter));
|
||||
}
|
||||
|
||||
private AnimatingFaerie(final AnimatingFaerie card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public AnimatingFaerie copy() {
|
||||
return new AnimatingFaerie(this);
|
||||
}
|
||||
}
|
|
@ -30,6 +30,7 @@ public final class ThroneOfEldraine extends ExpansionSet {
|
|||
|
||||
cards.add(new SetCardInfo("Alela, Artful Provocateur", 324, Rarity.MYTHIC, mage.cards.a.AlelaArtfulProvocateur.class));
|
||||
cards.add(new SetCardInfo("All That Glitters", 2, Rarity.UNCOMMON, mage.cards.a.AllThatGlitters.class));
|
||||
cards.add(new SetCardInfo("Animating Faerie", 38, Rarity.UNCOMMON, mage.cards.a.AnimatingFaerie.class));
|
||||
cards.add(new SetCardInfo("Arcane Signet", 331, Rarity.COMMON, mage.cards.a.ArcaneSignet.class));
|
||||
cards.add(new SetCardInfo("Arcanist's Owl", 206, Rarity.UNCOMMON, mage.cards.a.ArcanistsOwl.class));
|
||||
cards.add(new SetCardInfo("Bake into a Pie", 76, Rarity.COMMON, mage.cards.b.BakeIntoAPie.class));
|
||||
|
|
Loading…
Reference in a new issue