mirror of
https://github.com/magefree/mage.git
synced 2026-01-26 13:19:18 -08:00
[WHO] Implement The Girl in the Fireplace (#13356)
This commit is contained in:
parent
8d54145732
commit
0281b35c58
5 changed files with 185 additions and 2 deletions
|
|
@ -0,0 +1,36 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
|
||||
import mage.abilities.keyword.HorsemanshipAbility;
|
||||
import mage.constants.Duration;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.common.FilterCreaturePermanent;
|
||||
|
||||
/**
|
||||
* @author padfoot
|
||||
*/
|
||||
public final class TheGirlInTheFireplaceHorseToken extends TokenImpl {
|
||||
|
||||
public TheGirlInTheFireplaceHorseToken() {
|
||||
super("Horse Token", "2/2 white Horse creature token with \"Doctors you control have horsemanship.\"");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setWhite(true);
|
||||
subtype.add(SubType.HORSE);
|
||||
power = new MageInt(2);
|
||||
toughness = new MageInt(2);
|
||||
this.addAbility(new SimpleStaticAbility(new GainAbilityControlledEffect(HorsemanshipAbility.getInstance(),
|
||||
Duration.WhileOnBattlefield, new FilterCreaturePermanent(SubType.DOCTOR, "Doctors"), false)));
|
||||
}
|
||||
|
||||
private TheGirlInTheFireplaceHorseToken(final TheGirlInTheFireplaceHorseToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TheGirlInTheFireplaceHorseToken copy() {
|
||||
return new TheGirlInTheFireplaceHorseToken(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,40 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.SimpleStaticAbility;
|
||||
import mage.abilities.effects.common.PreventDamageToSourceEffect;
|
||||
import mage.abilities.keyword.VanishingAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.Duration;
|
||||
|
||||
/**
|
||||
* @author padfoot
|
||||
*/
|
||||
public final class TheGirlInTheFireplaceHumanNobleToken extends TokenImpl {
|
||||
|
||||
public TheGirlInTheFireplaceHumanNobleToken() {
|
||||
super("Human Noble Token", "1/1 white Human Noble creature token with vanishing 3 and \"Prevent all damage that would be dealt to this creature.\"");
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setWhite(true);
|
||||
subtype.add(SubType.HUMAN,SubType.NOBLE);
|
||||
power = new MageInt(1);
|
||||
toughness = new MageInt(1);
|
||||
this.addAbility(new VanishingAbility(3));
|
||||
this.addAbility(new SimpleStaticAbility(
|
||||
new PreventDamageToSourceEffect(
|
||||
Duration.WhileOnBattlefield,
|
||||
Integer.MAX_VALUE
|
||||
).setText("Prevent all damage that would be dealt to this creature.")
|
||||
));
|
||||
}
|
||||
|
||||
private TheGirlInTheFireplaceHumanNobleToken(final TheGirlInTheFireplaceHumanNobleToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TheGirlInTheFireplaceHumanNobleToken copy() {
|
||||
return new TheGirlInTheFireplaceHumanNobleToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue