mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08:00
Implemented Nesting Dragon
This commit is contained in:
parent
ee361da05f
commit
41fce60eee
3 changed files with 90 additions and 0 deletions
|
|
@ -0,0 +1,45 @@
|
|||
package mage.game.permanent.token;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.common.DiesTriggeredAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.keyword.DefenderAbility;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author spjspj
|
||||
*/
|
||||
public final class NestingDragonToken extends TokenImpl {
|
||||
|
||||
public NestingDragonToken() {
|
||||
super(
|
||||
"Dragon Egg",
|
||||
"0/2 red Dragon Egg creature token with defender and "
|
||||
+ "\""
|
||||
+ "When this creature dies, "
|
||||
+ "create a 2/2 red Dragon creature token with flying and "
|
||||
+ "'{R}: This creature gets +1/+0 until end of turn.'"
|
||||
+ "\""
|
||||
);
|
||||
cardType.add(CardType.CREATURE);
|
||||
color.setRed(true);
|
||||
subtype.add(SubType.DRAGON);
|
||||
subtype.add(SubType.EGG);
|
||||
power = new MageInt(0);
|
||||
toughness = new MageInt(2);
|
||||
addAbility(DefenderAbility.getInstance());
|
||||
this.addAbility(new DiesTriggeredAbility(
|
||||
new CreateTokenEffect(new DragonEggDragonToken()), false
|
||||
));
|
||||
}
|
||||
|
||||
public NestingDragonToken(final NestingDragonToken token) {
|
||||
super(token);
|
||||
}
|
||||
|
||||
public NestingDragonToken copy() {
|
||||
return new NestingDragonToken(this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue