mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 21:29:17 -08:00
[WHO] Implement The Eleventh Hour
This commit is contained in:
parent
30b6ac96a3
commit
4a67507e2b
4 changed files with 121 additions and 0 deletions
79
Mage.Sets/src/mage/cards/t/TheEleventhHour.java
Normal file
79
Mage.Sets/src/mage/cards/t/TheEleventhHour.java
Normal file
|
|
@ -0,0 +1,79 @@
|
|||
package mage.cards.t;
|
||||
|
||||
import mage.abilities.common.SagaAbility;
|
||||
import mage.abilities.effects.common.CreateTokenCopyTargetEffect;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.search.SearchLibraryPutInHandEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SagaChapter;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
import mage.filter.FilterCard;
|
||||
import mage.game.permanent.token.FoodToken;
|
||||
import mage.game.permanent.token.TheEleventhHourToken;
|
||||
import mage.target.common.TargetCardInLibrary;
|
||||
import mage.target.common.TargetCreaturePermanent;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class TheEleventhHour extends CardImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("a Doctor card");
|
||||
|
||||
static {
|
||||
filter.add(SubType.DOCTOR.getPredicate());
|
||||
}
|
||||
|
||||
public TheEleventhHour(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ENCHANTMENT}, "{3}{U}");
|
||||
|
||||
this.subtype.add(SubType.SAGA);
|
||||
|
||||
// (As this Saga enters and after your draw step, add a lore counter. Sacrifice after III.)
|
||||
SagaAbility sagaAbility = new SagaAbility(this);
|
||||
|
||||
// I -- Search your library for a Doctor card, reveal it, put it into your hand, then shuffle.
|
||||
sagaAbility.addChapterEffect(
|
||||
this, SagaChapter.CHAPTER_I,
|
||||
new SearchLibraryPutInHandEffect(new TargetCardInLibrary(filter), true)
|
||||
);
|
||||
|
||||
// II -- Create a Food token and a 1/1 white Human creature token with "Doctor spells you cast cost 1 less to cast."
|
||||
sagaAbility.addChapterEffect(
|
||||
this, SagaChapter.CHAPTER_II,
|
||||
new CreateTokenEffect(new FoodToken()),
|
||||
new CreateTokenEffect(new TheEleventhHourToken())
|
||||
.setText("and a 1/1 white Human creature token with " +
|
||||
"\"Doctor spells you cast cost 1 less to cast.\"")
|
||||
);
|
||||
|
||||
// III -- Create a token that's a copy of target creature, except it's a legendary Alien named Prisoner Zero.
|
||||
sagaAbility.addChapterEffect(
|
||||
this, SagaChapter.CHAPTER_III, SagaChapter.CHAPTER_III,
|
||||
new CreateTokenCopyTargetEffect()
|
||||
.setPermanentModifier(token -> {
|
||||
token.addSuperType(SuperType.LEGENDARY);
|
||||
token.removeAllCreatureTypes();
|
||||
token.addSubType(SubType.ALIEN);
|
||||
token.setName("Prisoner Zero");
|
||||
})
|
||||
.setText("create a token that's a copy of target creature, " +
|
||||
"except it's a legendary Alien named Prisoner Zero"),
|
||||
new TargetCreaturePermanent()
|
||||
);
|
||||
}
|
||||
|
||||
private TheEleventhHour(final TheEleventhHour card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TheEleventhHour copy() {
|
||||
return new TheEleventhHour(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -27,6 +27,7 @@ public final class DoctorWho extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Plains", 197, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Sarah Jane Smith", 6, Rarity.RARE, mage.cards.s.SarahJaneSmith.class));
|
||||
cards.add(new SetCardInfo("Swamp", 201, Rarity.LAND, mage.cards.basiclands.Swamp.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("The Eleventh Hour", 41, Rarity.RARE, mage.cards.t.TheEleventhHour.class));
|
||||
cards.add(new SetCardInfo("The Flux", 86, Rarity.RARE, mage.cards.t.TheFlux.class));
|
||||
cards.add(new SetCardInfo("The Thirteenth Doctor", 4, Rarity.MYTHIC, mage.cards.t.TheThirteenthDoctor.class));
|
||||
cards.add(new SetCardInfo("Yasmin Khan", 7, Rarity.RARE, mage.cards.y.YasminKhan.class));
|
||||
|
|
|
|||
|
|
@ -60,6 +60,7 @@ public enum SubType {
|
|||
// A
|
||||
ADVISOR("Advisor", SubTypeSet.CreatureType),
|
||||
AETHERBORN("Aetherborn", SubTypeSet.CreatureType),
|
||||
ALIEN("Alien", SubTypeSet.CreatureType),
|
||||
ALLY("Ally", SubTypeSet.CreatureType),
|
||||
ANGEL("Angel", SubTypeSet.CreatureType),
|
||||
ANTELOPE("Antelope", SubTypeSet.CreatureType),
|
||||
|
|
|
|||
|
|
@ -0,0 +1,40 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.cost.SpellsCostReductionControllerEffect;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterCard;
|
||||
|
||||
/**
|
||||
* @author LoneFox
|
||||
*/
|
||||
public final class TheEleventhHourToken extends TokenImpl {
|
||||
|
||||
private static final FilterCard filter = new FilterCard("Doctor spells you cast");
|
||||
|
||||
static {
|
||||
filter.add(SubType.DOCTOR.getPredicate());
|
||||
}
|
||||
|
||||
public TheEleventhHourToken() {
|
||||
super("Human Token", "1/1 white Human creature token with \"Doctor spells you cast cost 1 less to cast.\"");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setWhite(true);
|
||||
subtype.add(SubType.HUMAN);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
|
||||
addAbility(new SimpleStaticAbility(new SpellsCostReductionControllerEffect(filter, 1)));
|
||||
}
|
||||
|
||||
protected TheEleventhHourToken(final TheEleventhHourToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TheEleventhHourToken copy() {
|
||||
return new TheEleventhHourToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue