[WHO] Implement Sarah Jane Smith

This commit is contained in:
theelk801 2023-08-05 13:30:40 -04:00
parent e138003eb0
commit aa1624dc1c
5 changed files with 91 additions and 0 deletions

View file

@ -0,0 +1,50 @@
package mage.cards.s;
import mage.MageInt;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.effects.keyword.InvestigateEffect;
import mage.abilities.keyword.DoctorsCompanionAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.filter.FilterSpell;
import mage.filter.common.FilterHistoricSpell;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class SarahJaneSmith extends CardImpl {
private static final FilterSpell filter = new FilterHistoricSpell();
public SarahJaneSmith(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{W}");
this.supertype.add(SuperType.LEGENDARY);
this.subtype.add(SubType.HUMAN);
this.subtype.add(SubType.DETECTIVE);
this.power = new MageInt(2);
this.toughness = new MageInt(1);
// Whenever you cast a historic spell, investigate. This ability triggers only once each turn.
this.addAbility(new SpellCastControllerTriggeredAbility(
new InvestigateEffect(), filter, false
).setTriggersOnceEachTurn(true));
// Doctor's companion
this.addAbility(DoctorsCompanionAbility.getInstance());
}
private SarahJaneSmith(final SarahJaneSmith card) {
super(card);
}
@Override
public SarahJaneSmith copy() {
return new SarahJaneSmith(this);
}
}

View file

@ -24,6 +24,7 @@ public final class DoctorWho extends ExpansionSet {
cards.add(new SetCardInfo("Island", 199, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Mountain", 203, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
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));
}
}

View file

@ -0,0 +1,38 @@
package mage.abilities.keyword;
import mage.abilities.MageSingleton;
import mage.abilities.StaticAbility;
import mage.constants.Zone;
import java.io.ObjectStreamException;
/**
* @author TheElk801
*/
public class DoctorsCompanionAbility extends StaticAbility implements MageSingleton {
private static final DoctorsCompanionAbility instance = new DoctorsCompanionAbility();
private Object readResolve() throws ObjectStreamException {
return instance;
}
public static DoctorsCompanionAbility getInstance() {
return instance;
}
private DoctorsCompanionAbility() {
super(Zone.BATTLEFIELD, null);
}
@Override
public String getRule() {
return "Doctor's companion <i>(You can have two commanders if the other is the Doctor.)</i>";
}
@Override
public DoctorsCompanionAbility copy() {
return instance;
}
}

View file

@ -134,6 +134,7 @@ public enum SubType {
DEMIGOD("Demigod", SubTypeSet.CreatureType),
DEMON("Demon", SubTypeSet.CreatureType),
DESERTER("Deserter", SubTypeSet.CreatureType),
DETECTIVE("Detective", SubTypeSet.CreatureType),
DEVIL("Devil", SubTypeSet.CreatureType),
DINOSAUR("Dinosaur", SubTypeSet.CreatureType), // With Ixalan now being spoiled, need this to be selectable
DJINN("Djinn", SubTypeSet.CreatureType),

View file

@ -30,6 +30,7 @@ Devoid|color|
Defender|instance|
Disturb|cost|
Dredge|number|
Doctor's companion|instance|
Double Strike|instance|
Dredge|number|
Echo|manaString|