diff --git a/Mage.Sets/src/mage/cards/t/TheFirstDoctor.java b/Mage.Sets/src/mage/cards/t/TheFirstDoctor.java new file mode 100644 index 00000000000..e6609282cc0 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TheFirstDoctor.java @@ -0,0 +1,67 @@ +package mage.cards.t; + +import java.util.UUID; +import mage.MageInt; +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldTriggeredAbility; +import mage.abilities.common.SpellCastControllerTriggeredAbility; +import mage.abilities.effects.common.counter.AddCountersTargetEffect; +import mage.abilities.effects.common.search.SearchLibraryGraveyardPutInHandEffect; +import mage.abilities.keyword.CascadeAbility; +import mage.constants.SubType; +import mage.constants.SuperType; +import mage.constants.CardType; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.counters.CounterType; +import mage.filter.FilterCard; +import mage.filter.FilterSpell; +import mage.filter.predicate.mageobject.AbilityPredicate; +import mage.filter.predicate.mageobject.NamePredicate; +import mage.filter.StaticFilters; +import mage.target.TargetPermanent; + +/** + * + * @author padfoot + */ +public final class TheFirstDoctor extends CardImpl { + + private static final FilterSpell filterSpell = new FilterSpell("a spell with cascade"); + private static final FilterCard filterTARDIS = new FilterCard("TARDIS"); + + static { + filterSpell.add(new AbilityPredicate(CascadeAbility.class)); + filterTARDIS.add(new NamePredicate("TARDIS")); + } + + public TheFirstDoctor(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}{U}"); + + this.supertype.add(SuperType.LEGENDARY); + this.subtype.add(SubType.TIME_LORD, SubType.DOCTOR); + this.power = new MageInt(2); + this.toughness = new MageInt(2); + + // When The First Doctor enters the battlefield, search your library and/or graveyard for a card named TARDIS, reveal it, and put it into your hand. If you search your library this way, shuffle. + this.addAbility(new EntersBattlefieldTriggeredAbility(new SearchLibraryGraveyardPutInHandEffect(filterTARDIS), false)); + + // Whenever you cast a spell with cascade, put a +1/+1 counter on target artifact or creature. + Ability ability = new SpellCastControllerTriggeredAbility( + new AddCountersTargetEffect(CounterType.P1P1.createInstance()), + filterSpell, + false + ); + ability.addTarget(new TargetPermanent(StaticFilters.FILTER_PERMANENT_ARTIFACT_OR_CREATURE)); + this.addAbility(ability); + } + + private TheFirstDoctor(final TheFirstDoctor card) { + super(card); + } + + @Override + public TheFirstDoctor copy() { + return new TheFirstDoctor(this); + } +} diff --git a/Mage.Sets/src/mage/sets/DoctorWho.java b/Mage.Sets/src/mage/sets/DoctorWho.java index 2c095c0831a..9f73e4cad2e 100644 --- a/Mage.Sets/src/mage/sets/DoctorWho.java +++ b/Mage.Sets/src/mage/sets/DoctorWho.java @@ -920,13 +920,13 @@ public final class DoctorWho extends ExpansionSet { cards.add(new SetCardInfo("The Fifth Doctor", 413, Rarity.RARE, mage.cards.t.TheFifthDoctor.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("The Fifth Doctor", 556, Rarity.RARE, mage.cards.t.TheFifthDoctor.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("The Fifth Doctor", 732, Rarity.RARE, mage.cards.t.TheFifthDoctor.class, NON_FULL_USE_VARIOUS)); - //cards.add(new SetCardInfo("The First Doctor", "552z", Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); - //cards.add(new SetCardInfo("The First Doctor", 1005, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); - //cards.add(new SetCardInfo("The First Doctor", 1143, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); - //cards.add(new SetCardInfo("The First Doctor", 128, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); - //cards.add(new SetCardInfo("The First Doctor", 414, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); - //cards.add(new SetCardInfo("The First Doctor", 552, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); - //cards.add(new SetCardInfo("The First Doctor", 733, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("The First Doctor", "552z", Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("The First Doctor", 1005, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("The First Doctor", 1143, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("The First Doctor", 128, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("The First Doctor", 414, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("The First Doctor", 552, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("The First Doctor", 733, Rarity.RARE, mage.cards.t.TheFirstDoctor.class, NON_FULL_USE_VARIOUS)); //cards.add(new SetCardInfo("The Five Doctors", 101, Rarity.RARE, mage.cards.t.TheFiveDoctors.class, NON_FULL_USE_VARIOUS)); //cards.add(new SetCardInfo("The Five Doctors", 394, Rarity.RARE, mage.cards.t.TheFiveDoctors.class, NON_FULL_USE_VARIOUS)); //cards.add(new SetCardInfo("The Five Doctors", 706, Rarity.RARE, mage.cards.t.TheFiveDoctors.class, NON_FULL_USE_VARIOUS));