Implemented Domri, Chaos Bringer

This commit is contained in:
Evan Kranzler 2019-01-07 21:00:39 -05:00
parent b9618fe5be
commit 61de630f5a
4 changed files with 201 additions and 0 deletions

View file

@ -0,0 +1,23 @@
package mage.game.command.emblems;
import mage.abilities.common.BeginningOfEndStepTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.constants.TargetController;
import mage.game.command.Emblem;
import mage.game.permanent.token.SoldierToken;
/**
* @author TheElk801
*/
public final class DomriChaosBringerEmblem extends Emblem {
// -8: You get an emblem with "At the beginning of each end step, create a 4/4 red and green Beast creature token with trample."
public DomriChaosBringerEmblem() {
this.setName("Emblem Domri");
this.setExpansionSetCodeForImage("RNA");
this.getAbilities().add(new BeginningOfEndStepTriggeredAbility(
new CreateTokenEffect(new SoldierToken()),
TargetController.ANY, false
));
}
}

View file

@ -0,0 +1,33 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.TrampleAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class DomriChaosBringerToken extends TokenImpl {
public DomriChaosBringerToken() {
super("Beast", "4/4 red and green Beast creature token with trample");
cardType.add(CardType.CREATURE);
color.setRed(true);
color.setGreen(true);
subtype.add(SubType.BEAST);
power = new MageInt(4);
toughness = new MageInt(4);
this.addAbility(TrampleAbility.getInstance());
}
private DomriChaosBringerToken(final DomriChaosBringerToken token) {
super(token);
}
public DomriChaosBringerToken copy() {
return new DomriChaosBringerToken(this);
}
}