Implemented Emmara, Soul of the Accord

This commit is contained in:
Evan Kranzler 2018-09-02 21:56:34 -04:00
parent 49cdd3f7d5
commit e9fef59495
3 changed files with 76 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.e;
import java.util.UUID;
import mage.MageInt;
import mage.abilities.common.BecomesTappedSourceTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.constants.SubType;
import mage.constants.SuperType;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.game.permanent.token.SoldierLifelinkToken;
/**
*
* @author TheElk801
*/
public final class EmmaraSoulOfTheAccord extends CardImpl {
public EmmaraSoulOfTheAccord(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{G}{W}");
this.addSuperType(SuperType.LEGENDARY);
this.subtype.add(SubType.ELF);
this.subtype.add(SubType.CLERIC);
this.power = new MageInt(2);
this.toughness = new MageInt(2);
// Whenever Emmara, Soul of the Accord becomes tapped, create a 1/1 white Soldier creature token with lifelink.
this.addAbility(new BecomesTappedSourceTriggeredAbility(
new CreateTokenEffect(new SoldierLifelinkToken())
));
}
public EmmaraSoulOfTheAccord(final EmmaraSoulOfTheAccord card) {
super(card);
}
@Override
public EmmaraSoulOfTheAccord copy() {
return new EmmaraSoulOfTheAccord(this);
}
}

View file

@ -22,6 +22,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
this.numBoosterRare = 1;
this.ratioBoosterMythic = 8;
cards.add(new SetCardInfo("Emmara, Soul of the Accord", 168, Rarity.RARE, mage.cards.e.EmmaraSoulOfTheAccord.class));
cards.add(new SetCardInfo("Impervious Greatwurm", 273, Rarity.MYTHIC, mage.cards.i.ImperviousGreatwurm.class));
cards.add(new SetCardInfo("Narcomoeba", 47, Rarity.RARE, mage.cards.n.Narcomoeba.class));
cards.add(new SetCardInfo("Overgrown Tomb", 253, Rarity.RARE, mage.cards.o.OvergrownTomb.class));

View file

@ -0,0 +1,32 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.LifelinkAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
*
* @author TheElk801
*/
public final class SoldierLifelinkToken extends TokenImpl {
public SoldierLifelinkToken() {
super("Soldier", "1/1 white Soldier creature token with lifelink");
cardType.add(CardType.CREATURE);
color.setWhite(true);
subtype.add(SubType.SOLDIER);
power = new MageInt(1);
toughness = new MageInt(1);
addAbility(LifelinkAbility.getInstance());
}
public SoldierLifelinkToken(final SoldierLifelinkToken token) {
super(token);
}
public SoldierLifelinkToken copy() {
return new SoldierLifelinkToken(this);
}
}