mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[PIP] Implement Commander Sofia Daguerre (#11947)
This commit is contained in:
parent
56ba6b1072
commit
5598f75a79
2 changed files with 62 additions and 0 deletions
60
Mage.Sets/src/mage/cards/c/CommanderSofiaDaguerre.java
Normal file
60
Mage.Sets/src/mage/cards/c/CommanderSofiaDaguerre.java
Normal file
|
|
@ -0,0 +1,60 @@
|
|||
package mage.cards.c;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenControllerTargetPermanentEffect;
|
||||
import mage.abilities.effects.common.DestroyTargetEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.abilities.keyword.FlashAbility;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.game.permanent.token.JunkToken;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
* @author Cguy7777
|
||||
*/
|
||||
public final class CommanderSofiaDaguerre extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterPermanent("legendary permanent");
|
||||
|
||||
static {
|
||||
filter.add(SuperType.LEGENDARY.getPredicate());
|
||||
}
|
||||
|
||||
public CommanderSofiaDaguerre(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{W}");
|
||||
|
||||
this.supertype.add(SuperType.LEGENDARY);
|
||||
this.subtype.add(SubType.HUMAN);
|
||||
this.subtype.add(SubType.PILOT);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(3);
|
||||
|
||||
// Flash
|
||||
this.addAbility(FlashAbility.getInstance());
|
||||
|
||||
// Crash Landing -- When Commander Sofia Daguerre enters the battlefield,
|
||||
// destroy up to one target legendary permanent. That permanent's controller creates a Junk token.
|
||||
Ability ability = new EntersBattlefieldTriggeredAbility(new DestroyTargetEffect());
|
||||
ability.addEffect(new CreateTokenControllerTargetPermanentEffect(new JunkToken())
|
||||
.setText("that permanent's controller creates a Junk token"));
|
||||
ability.addTarget(new TargetPermanent(0, 1, filter));
|
||||
this.addAbility(ability.withFlavorWord("Crash Landing"));
|
||||
}
|
||||
|
||||
private CommanderSofiaDaguerre(final CommanderSofiaDaguerre card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CommanderSofiaDaguerre copy() {
|
||||
return new CommanderSofiaDaguerre(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -70,6 +70,8 @@ public final class Fallout extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Cinder Glade", 257, Rarity.RARE, mage.cards.c.CinderGlade.class));
|
||||
cards.add(new SetCardInfo("Clifftop Retreat", 258, Rarity.RARE, mage.cards.c.ClifftopRetreat.class));
|
||||
cards.add(new SetCardInfo("Command Tower", 259, Rarity.COMMON, mage.cards.c.CommandTower.class));
|
||||
cards.add(new SetCardInfo("Commander Sofia Daguerre", 15, Rarity.UNCOMMON, mage.cards.c.CommanderSofiaDaguerre.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Commander Sofia Daguerre", 543, Rarity.UNCOMMON, mage.cards.c.CommanderSofiaDaguerre.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Contagion Clasp", 229, Rarity.UNCOMMON, mage.cards.c.ContagionClasp.class));
|
||||
cards.add(new SetCardInfo("Corpsejack Menace", 214, Rarity.UNCOMMON, mage.cards.c.CorpsejackMenace.class));
|
||||
cards.add(new SetCardInfo("Crimson Caravaneer", 56, Rarity.UNCOMMON, mage.cards.c.CrimsonCaravaneer.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue