mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 18:50:06 -08:00
[TDC] Implement Deceptive Frostkite
This commit is contained in:
parent
8787eacd41
commit
c46e37a997
2 changed files with 75 additions and 0 deletions
74
Mage.Sets/src/mage/cards/d/DeceptiveFrostkite.java
Normal file
74
Mage.Sets/src/mage/cards/d/DeceptiveFrostkite.java
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
package mage.cards.d;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.MageObject;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.EntersBattlefieldEffect;
|
||||
import mage.abilities.effects.common.CopyPermanentEffect;
|
||||
import mage.abilities.keyword.FlyingAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.ComparisonType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Zone;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.filter.predicate.mageobject.PowerPredicate;
|
||||
import mage.game.Game;
|
||||
import mage.util.functions.CopyApplier;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class DeceptiveFrostkite extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter
|
||||
= new FilterControlledCreaturePermanent("a creature you control with power 4 or greater");
|
||||
|
||||
static {
|
||||
filter.add(new PowerPredicate(ComparisonType.MORE_THAN, 3));
|
||||
}
|
||||
|
||||
private static final CopyApplier applier = new CopyApplier() {
|
||||
@Override
|
||||
public boolean apply(Game game, MageObject blueprint, Ability source, UUID copyToObjectId) {
|
||||
blueprint.addSubType(SubType.DRAGON);
|
||||
blueprint.getAbilities().add(FlyingAbility.getInstance());
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
public DeceptiveFrostkite(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{U}{U}");
|
||||
|
||||
this.subtype.add(SubType.DRAGON);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Flying
|
||||
this.addAbility(FlyingAbility.getInstance());
|
||||
|
||||
// You may have this creature enter as a copy of a creature you control with power 4 or greater, except it's a Dragon in addition to its other types and it has flying.
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
Zone.ALL,
|
||||
new EntersBattlefieldEffect(
|
||||
new CopyPermanentEffect(filter, applier), "you may have this creature enter " +
|
||||
"as a copy of a creature you control with power 4 or greater, " +
|
||||
"except it's a Dragon in addition to its other types and it has flying", true
|
||||
)
|
||||
));
|
||||
}
|
||||
|
||||
private DeceptiveFrostkite(final DeceptiveFrostkite card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public DeceptiveFrostkite copy() {
|
||||
return new DeceptiveFrostkite(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -94,6 +94,7 @@ public final class TarkirDragonstormCommander extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Darkwater Catacombs", 355, Rarity.RARE, mage.cards.d.DarkwaterCatacombs.class));
|
||||
cards.add(new SetCardInfo("Dauthi Voidwalker", 176, Rarity.RARE, mage.cards.d.DauthiVoidwalker.class));
|
||||
cards.add(new SetCardInfo("Deadly Dispute", 177, Rarity.COMMON, mage.cards.d.DeadlyDispute.class));
|
||||
cards.add(new SetCardInfo("Deceptive Frostkite", 19, Rarity.RARE, mage.cards.d.DeceptiveFrostkite.class));
|
||||
cards.add(new SetCardInfo("Deceptive Landscape", 356, Rarity.COMMON, mage.cards.d.DeceptiveLandscape.class));
|
||||
cards.add(new SetCardInfo("Deep Analysis", 150, Rarity.COMMON, mage.cards.d.DeepAnalysis.class));
|
||||
cards.add(new SetCardInfo("Despark", 284, Rarity.UNCOMMON, mage.cards.d.Despark.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue