[WHO] Implement The Eleventh Hour

This commit is contained in:
theelk801 2023-08-05 22:16:01 -04:00
parent 30b6ac96a3
commit 4a67507e2b
4 changed files with 121 additions and 0 deletions

View file

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

View file

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