mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -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
|
|
@ -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