[PIP] Implement Commander Sofia Daguerre (#11947)

This commit is contained in:
Cameron Merkel 2024-03-16 17:28:27 -05:00 committed by GitHub
parent 56ba6b1072
commit 5598f75a79
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 62 additions and 0 deletions

View 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);
}
}

View file

@ -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));